Start_time not working for Meeting scheduled today

Description
I am creating a meeting using zoom_api. I am setting the start_time, but it is picking up current time or created_at time.

Error

  • When I try with a start_time of 2 hours in future, it is picking the created_at time as start_time. Code for this as follow -

      HTTParty.post(
        "https://api.zoom.us/v2/users/me/meetings", 
        {
          :headers => {
            "Authorization" => "Bearer #{author.zoom_integration_access_token}",
             "Content-Type" => "application/json"
           },
           :body => {
            "topic" => "#{meeting_name}",
            "type" => 2,
            "start_time" => (Time.now + 2.hours).utc.strftime("%Y-%m-%dT%I:%M:%SZ"),
            "settings" =>  {
              "host_video" => true,
              "participant_video" => true,
              "join_before_host" => true
            }
          }.to_json,
          :format => :json
        }
      )
    
  • When I am keeping everything same and changing start_time to 1 day in future (as following), It is working fine. -

    { “start_time” => (Time.now + 1.days).utc.strftime(“%Y-%m-%dT%I:%M:%SZ”) }

In short if start_time is of today it is not working correctly and if start_time is any date in future it is working fine.

Note: I am using ruby language here.

Attaching a screenshot for the converted date-time format in both the cases.

Could you please look into this as soon as possible?
Thanks.

Hey @rahul5,

When you send this same request in Postman, are you having the same issue? Additionally, what time zone are you in?

Can you also try removing the ‘Z’ from your start time and use your local timezone:
image

Let me know how this goes—thanks!
Will

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.