1. Home
  2. ...
  3. FAQs
  4. In which time zone does Analytics store and display data?

In which time zone does Analytics store and display data?

Sensedia Analytics stores data in UTC-0 and displays it in the browser time zone. See how this affects filters, exports, and API queries.

Sensedia Analytics stores the date and time of each call in UTC-0. On screen, these values are displayed in your browser time zone.

IMPORTANT

The same call may show different times on screen and in data exported or queried through the API. The instant is the same. Only the time zone used to present it changes.

Conversion example

With the browser in UTC-3 (Brasília time):

Stored (UTC-0)
Displayed on screen (UTC-3)
Aug 10, 00:00Aug 9, 21:00
Aug 10, 12:00Aug 10, 09:00
Aug 10, 23:59Aug 10, 20:59

In other words, August 10 in UTC-0 appears on screen between Aug 9 at 21:00 and Aug 10 at 20:59.

Time zone in each feature

Feature
Time zone of dates
General Trace, Visualize, and DashboardsBrowser time zone
Log SearchingBrowser time zone
Data Archive (screen)Browser time zone
Visualize CSV, Formatted optionBrowser time zone
Visualize CSV, Raw optionUTC-0 in the date value, grouping in the browser time zone
Analytics APIUTC-0
Data StreamingUTC-0
Data Archive (generated file)UTC-0
Data rotationUTC-0

Time filters and day boundaries

Time filters on screen use the browser time zone. Options such as Today refer to the day in your time zone, not to the day in UTC-0.

To compare Analytics data with a daily count made in UTC-0, shift the filter period. With the browser in UTC-3, August 10 in UTC-0 corresponds to a filter from Aug 9 at 21:00 to Aug 10 at 20:59.

Queries through the Analytics API

The traces/query endpoint does not convert dates:

  • Dates sent without a time zone are read as UTC-0.
  • The sensedia.received_on field is returned in milliseconds since January 1, 1970, 00:00 in UTC-0.
  • Date aggregations group in UTC-0, unless the query sets the time_zone parameter.

See dates and time zone in API queries.

Exported data

  • Visualize CSV: the Formatted option brings dates in the browser time zone, with no time zone indicated in the file. The Raw option brings the same dates in milliseconds, in UTC-0. In both options, date aggregations remain grouped in the browser time zone: with the browser in UTC-3, each day starts at 03:00 in UTC-0. To group by day in UTC-0, use the Analytics API without the time_zone parameter or shift the filter period.
  • Data Streaming: dates are sent in UTC-0. In JSON destinations, the year, month, day, and hour folders also follow UTC-0. See Data Streaming details.
  • Data Archive: the request period is entered in the browser time zone and the generated file brings dates in UTC-0. See Data Archive.

See also

How happy are you with this page?

We use cookies to enhance your experience on our site. By continuing to browse, you agree to our use of cookies.Learn more