Q: Does Terra timestamps include timezone offset?

BurningWasp6 months ago

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

terra

Danieladmin6 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!


GorgeousKoala3 weeks ago

I need to always retrieve data, such as end_time, in the user's device timezone. How can I ensure that Terra retrieves timestamps with the user's timezone, or how can I pass the current user's timezone to Terra so that it returns timestamps in the correct timezone?


Cookie Preferences

Essential CookiesAlways On
Advertisement Cookies
Analytics Cookies

Crunch Time: Embrace the Cookie Monster Within!

We use cookies to enhance your browsing experience and analyse our traffic. By clicking “Accept All”, you consent to our use of cookies according to our Cookie Policy. You can change your mind any time by visiting out cookie policy.