I’m writing a script to pull time entries from Clockify and trying to use the
start parameter for the
From the API docs:
If provided, only time entries that started after the specified datetime will be returned. Datetime must be in ISO-8601 format (eg. “2019-04-16T05:15:32.998Z”). You both send and get time based on UTC.
I’m currently in Eastern Time so I’m in GMT-5 right now. My latest time entry is showing a date of
2021-02-23T18:53:00Z but if I pass the
?start=2021-02-23T18:00:00Z I get an empty results set.
However, if I pass the
?start=2021-02-23T13:00:00Z, I see that latest entry. I have to offset the “zulu” timestamp by my GMT offset to actually limit my result set to the correct start time as returned by the API.
Is this a known issue? Or am I not doing/understanding something correctly?