Q: Does Terra timestamps include timezone offset?

BurningWasp2 months ago

I would like to know which timezone my users are in, is this possible?

terra

Danieladmin2 months ago

Hello there,

Yes, when the timezone is available, all the timestamps in the payload come with the timezone offset at the end, like 2024-02-28T13:43:45+01:00 which is UTC+01. If the timezone is unknown to us or given by the data provider, the timezone will be given in UTC - so the best practice would be to detect the user's timezone in the frontend, convert the timestamp we provide (considering the offset) to their local timezone.

Hope that answers your question!