Terra
Integrations
Research

Integration

API
Unified API
SDK
SDK
Authentication
Authentication
Streaming
Streaming
Blood
Blood Report API
Planned Workouts
Planned Workouts
AI Interface
AI Interface

User engagement

Graph API
Graph API
Scores
Health Scores
Rewards
Health Rewards

Use cases

Enterprise
Enterprise
Insurance
Insurance

Developers

Wearable Data
Wearable Data
Community
Community
Documentation
Documentation

Learn

Blog
Blog
Podcast
Podcast
Events
Events
Reports
Reports

Company

Customers
Customers
Careers
Careers
Partners
Partners
Support
Support
Pricing
Become an integrationGet started
IntegrationsResearch
Unified APIUnified APISDKSDKAuthenticationAuthenticationStreamingStreamingGraph APIGraph APIScoresScoresRewardsRewardsBlood Report APIBloodAI InterfaceAI Interface
EnterpriseEnterpriseInsuranceInsuranceWearable DataWearable DataCommunityCommunityDocumentationDocumentationBlogBlogPodcastPodcastEventsEventsReportsReportsCustomersCustomersCareersCareersPartnersPartnersSupportSupport
Pricing
Get startedBecome an integration


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.

Cookies Policy
zap

Latest

zap

Popular

API

Unified API

SDK

Phone SDK

Authentication

Widget

Streaming

Streaming

Graph API

Graph API

Does Terra timestamps include timezone offset?

All

BurningWasp26 months ago

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

terra

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


GorgeousKoala21 months 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?


terra

Alexadmin16 months ago

Hi there,

You can't pass the time zone in yourself, but Terra will receive this information in most cases from the wearable data provider directly