# Accept ISO8601 dates with milliseconds?

**URL:** <https://devforum.zoom.us/t/accept-iso8601-dates-with-milliseconds/12507>\
**Category:** API and Webhooks\
**Created:** [April 10, 2020, 7:26am UTC](https://devforum.zoom.us/t/accept-iso8601-dates-with-milliseconds/12507 "2020-04-10T07:26:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Civility](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/civility/32/5435_2.png) [@Civility](https://devforum.zoom.us/u/Civility)\
**Post date:** [April 10, 2020, 7:26am UTC](https://devforum.zoom.us/t/accept-iso8601-dates-with-milliseconds/12507/1 "2020-04-10T07:26:30Z")

</div>

I was debugging why `start_time` timestamps were incorrectly echoed by the [Create Meeting](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingcreate) API call:

```json
{
  topic: "Test start time 2020-04-15T19:55:00.000Z",
  type: 2,
  start_time: "2020-04-15T19:55:00.000Z",
}

```

Response:

```json
{
  topic: "Test start time 2020-04-15T19:55:00.000Z",
  type: 2,
  status: "waiting",
  start_time: "2020-04-16T02:55:00Z",
  timezone: "America/Los_Angeles",
}

```

Note the all times were in the Zulu timezone, but the `start_time` in the response came back off by 7 hours, the `America/Los_Angeles` offset.

Turned out this surprising error was caused by including the milliseconds in the `start_time` request. I know the format is documented to not have milliseconds, but I was using [`.toISOString()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) in JavaScript, which I suspect is a common error others may make.

If I send the `start_time` without the `.000` part, the response correctly returns the same `start_time` value.

I’ve since added code to strip the milliseconds from the `start_time` before sending the request, but it would be nice if the API were more robust and accepted RFC3339 timestamps with milliseconds.

Thanks! 🙂

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 11, 2020, 3:50am UTC](https://devforum.zoom.us/t/accept-iso8601-dates-with-milliseconds/12507/2 "2020-04-11T03:50:44Z")

</div>

Hey @Civility,

Nice find, we will consider fixing this, however, our docs due state to set the start\_time as:

`YYYY-MM-DDTHH:MM:SSZ`.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 8:26pm UTC](https://devforum.zoom.us/t/accept-iso8601-dates-with-milliseconds/12507/3 "2020-08-21T20:26:29Z")

</div>

Closed on August 21, 2020, 8:26pm UTC


