# Getting wrong timezones while creating events through the API

**URL:** <https://devforum.zoom.us/t/getting-wrong-timezones-while-creating-events-through-the-api/55486>\
**Category:** API and Webhooks\
**Created:** [August 9, 2021, 7:28pm UTC](https://devforum.zoom.us/t/getting-wrong-timezones-while-creating-events-through-the-api/55486 "2021-08-09T19:28:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jesus\_OYNB](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jesus_oynb/32/29944_2.png) [@Jesus\_OYNB](https://devforum.zoom.us/u/Jesus_OYNB)\
**Post date:** [August 9, 2021, 7:28pm UTC](https://devforum.zoom.us/t/getting-wrong-timezones-while-creating-events-through-the-api/55486/1 "2021-08-09T19:28:29Z")

</div>

Hi! The Zoom API is extremely useful for me, so thanks for that! I’m creating meetings from time to time, using a NodeJS script. These events are scheduled for different timezones, so I’m converting the times to UTC. After some trial and error, this seemed to be the only solution.

However, this is not working for one of the timezones I need: London. When I create events for London, it interprets my ISO string as a London time, not as a UTC time. In the summer, London times are GMT+1.

**Description**  
I’m creating events in two different timezones through a script, using UTC times as ISO strings. Those for the New York timezone are fine, but those created for London get assigned the wrong time by 1h.

**Error**  
No error message, the events are created apparently ok.

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
JWT

**Which Endpoint/s?**  
POST to /users/[userId]/meetings , [link](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingcreate)

**How To Reproduce (If applicable)**  
I try to create an Event scheduled for **19:00 in New York** , so I convert the time to UTC and I get “2021-08-16T23:00:00.000Z”. So I send the following JSON:

```json
{
    "topic": "Huddle",
    "type": 2,
    "timezone": "America/New_York",
    "duration": 60,
    "weekday": 0,
    "start_time": "2021-08-16T23:00:00.000Z",
    "description": "...",
    "agenda": "...",
    "password": "156863",
    "settings": {
      "host_video": true,
      "participant_video": true,
      "mute_upon_entry": true,
      "auto_recording": "none",
      "waiting_room": false
    }
  }

```

(The passwords are randomly generated)

When I want to do the same for an event scheduled for **9:00 AM London** time, I translate that to 08:00 UTC, and to ISO string: “2021-08-16T08:00:00.000Z”. I get the following JSON:

```json
{
    "topic": "Huddle",
    "type": 2,
    "timezone": "Europe/London",
    "duration": 60,
    "weekday": 0,
    "start_time": "2021-08-16T08:00:00.000Z",
    "description": "...",
    "agenda": "....",
    "password": "761381",
    "settings": {
      "host_video": true,
      "participant_video": true,
      "mute_upon_entry": true,
      "auto_recording": "none",
      "waiting_room": false
    }
  }

```

Result: The first event gets scheduled for the correct time, 23:00 UTC; the second get scheduled for 08:00 UK, and not 08:00 UTC.

**Screenshots (If applicable)**  
Sorry, I fix it manually every time and I’ve already done that. I can send screenshots in a few days if you need me to.

**Additional context**  
I work for a british company, so London is probably the default timezone on our account.

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [August 10, 2021, 5:51pm UTC](https://devforum.zoom.us/t/getting-wrong-timezones-while-creating-events-through-the-api/55486/2 "2021-08-10T17:51:53Z")

</div>

Hi @Jesus_OYNB,

I noticed that you’re passing a more granular timesteamp with milliseconds, which our API doesn’t support:  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/e/d/ed1bc43eed8ef66f89b7746c08609d7ae03a8756.png)

Can you make sure you’re following this format:  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/3/f/3fdadc8251de8dfb8d7bfd5b1c5ee3a6a6530a1e.png)

Let me know if you’re still seeing issues after making this adjustment. And note that the API will always return the time in UTC.

Thanks!  
Will

---

<div class="post-metadata">

**Author:** ![Jesus\_OYNB](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jesus_oynb/32/29944_2.png) [@Jesus\_OYNB](https://devforum.zoom.us/u/Jesus_OYNB)\
**Post date:** [August 12, 2021, 2:52pm UTC](https://devforum.zoom.us/t/getting-wrong-timezones-while-creating-events-through-the-api/55486/3 "2021-08-12T14:52:20Z")

</div>

Huh, you’re absolutely right, and it says as much in the documentation, my bad. Thanks a lot!

I was assuming it was just an ISO string. May be it would be better for the API to return an error if the format is incorrect?

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [August 13, 2021, 3:43pm UTC](https://devforum.zoom.us/t/getting-wrong-timezones-while-creating-events-through-the-api/55486/4 "2021-08-13T15:43:50Z")

</div>

Glad I could help! And that’s a good suggestion, I’ll be happy to share this feedback with the team. 🙂

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [August 13, 2021, 3:43pm UTC](https://devforum.zoom.us/t/getting-wrong-timezones-while-creating-events-through-the-api/55486/5 "2021-08-13T15:43:53Z")

</div>

Closed on August 13, 2021, 3:43pm UTC


