Timezones

Time zones

The timestamps in the API are represented in the ISO-8601 format including the time zone indicator (Z) which means these timestamps are in UTC by default. The timestamps shown in the web and mobile apps are in the account timezone, which is usually not UTC.

If you wish to communicate with the API without converting between local and UTC timestamps, then you can indicate the timezone you wish to use from the valid IANA timezone identifier list by providing the following HTTP Header:

Accept-Timezone: Europe/Tallinn

The API will respond with the timestamps converted to that timezone including the correct UTC offset indicator. The response headers will also indicate the content timezone as a confirmation.

Content-Timezone: Europe/Tallinn