# Serious problems with time in Zoom API - Timestamps from 20:00 - 23:59 are incorrect

**URL:** <https://devforum.zoom.us/t/serious-problems-with-time-in-zoom-api-timestamps-from-20-00-23-59-are-incorrect/97873>\
**Category:** API and Webhooks\
**Created:** [November 5, 2023, 3:15am UTC](https://devforum.zoom.us/t/serious-problems-with-time-in-zoom-api-timestamps-from-20-00-23-59-are-incorrect/97873 "2023-11-05T03:15:21Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![amp3](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/amp3/32/49141_2.png) [@amp3](https://devforum.zoom.us/u/amp3)\
**Post date:** [November 5, 2023, 3:15am UTC](https://devforum.zoom.us/t/serious-problems-with-time-in-zoom-api-timestamps-from-20-00-23-59-are-incorrect/97873/1 "2023-11-05T03:15:21Z")

</div>

I’m wondering if someone can please explain how time in the Zoom API works?

I created an event at `2023-11-04T22:29:03Z`, but the timestamp on my log is `2023-11-05T02:29:20Z`. It’s unclear why there’s a log with a date in the future. I’ve noticed this for multiple events that happened from `20:00 - 23:59` and it appears the API drops the first digit, is this expected? All times from `0:00-19:59` are accurate in my experience. Additionally, while it’s still 2023-11-04, I’d expect to see `from:2023-11-03, to:2023-11-04`. How am I getting events in the future?

Request made on November 4, 2023 at 10:30PM.

```auto
{
    "from": "2023-11-04",
    "to": "2023-11-05",
    "page_size": 30,
    "next_page_token": "",
    "activity_logs": [
        {
            "email": "user@email.com",
            "time": "2023-11-05T02:29:20Z",
            "type": "Sign in",
            "ip_address": "###",
            "client_type": "Browser",
            "version": "-"
        }
    ]
}

```

For reference, I’m working with the `https://api.zoom.us/v2/report/activities` and `https://api.zoom.us/v2/report/operationLogs` endpoints.

Next, if I don’t specify any date parameters, at what time does the `from` parameter begin and at what time does the `to` parameter end? If I make a request at 6PM, will I get events from 6PM the day before, or does the API always start at midnight the day before and return up until 11:59PM of the current date?

---

<div class="post-metadata">

**Author:** ![amp3](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/amp3/32/49141_2.png) [@amp3](https://devforum.zoom.us/u/amp3)\
**Post date:** [November 7, 2023, 4:27pm UTC](https://devforum.zoom.us/t/serious-problems-with-time-in-zoom-api-timestamps-from-20-00-23-59-are-incorrect/97873/2 "2023-11-07T16:27:51Z")

</div>

It looks like it’s UTC and not local time, so the first part of the question was my mistake. I’m still curious what the default request time frame is.

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [November 7, 2023, 7:59pm UTC](https://devforum.zoom.us/t/serious-problems-with-time-in-zoom-api-timestamps-from-20-00-23-59-are-incorrect/97873/3 "2023-11-07T19:59:07Z")

</div>

Hi @amp3  
Thanks for reaching out to us.  
Yes you are right the time by default will be shown in UTC  
For the from and to parameters, you will have to set up the dates you are trying to query in each request, if you do not specify any to and from, it will start querying from the day before to today

---

<div class="post-metadata">

**Author:** ![amp3](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/amp3/32/49141_2.png) [@amp3](https://devforum.zoom.us/u/amp3)\
**Post date:** [November 7, 2023, 11:55pm UTC](https://devforum.zoom.us/t/serious-problems-with-time-in-zoom-api-timestamps-from-20-00-23-59-are-incorrect/97873/4 "2023-11-07T23:55:32Z")

</div>

Thanks @Elisa, is it the `from` date at midnight or 24 hours from the request time? Thanks for your help, we really appreciate it!

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [November 8, 2023, 3:04pm UTC](https://devforum.zoom.us/t/serious-problems-with-time-in-zoom-api-timestamps-from-20-00-23-59-are-incorrect/97873/5 "2023-11-08T15:04:48Z")

</div>

Of course @amp3  
After doing some testing, it looks like it is 24 hours from the request time

---

<div class="post-metadata">

**Author:** ![amp3](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/amp3/32/49141_2.png) [@amp3](https://devforum.zoom.us/u/amp3)\
**Post date:** [November 9, 2023, 9:58am UTC](https://devforum.zoom.us/t/serious-problems-with-time-in-zoom-api-timestamps-from-20-00-23-59-are-incorrect/97873/6 "2023-11-09T09:58:17Z")

</div>

Thanks Elisa, I appreciate your help!

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [November 9, 2023, 3:04pm UTC](https://devforum.zoom.us/t/serious-problems-with-time-in-zoom-api-timestamps-from-20-00-23-59-are-incorrect/97873/7 "2023-11-09T15:04:58Z")

</div>

Of course !!! @amp3  
Happy to help!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [November 10, 2023, 3:05pm UTC](https://devforum.zoom.us/t/serious-problems-with-time-in-zoom-api-timestamps-from-20-00-23-59-are-incorrect/97873/8 "2023-11-10T15:05:42Z")

</div>

Closed on November 10, 2023, 3:05pm UTC

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