Power a localized user experiences.
timeZone
input field in GraphQL queries to power localized user experiences.
timeZone
input field do?timeZone
field specifies which timezone Propel should use when calculating time-based aggregations in your queries.
Here’s how it works:
TODAY
, supported in the Counter, Data Grid, Time Series, Leaderboard, Metric Report, and Top Values APIs, the timezone
determines what “today” means. For example, “today” starts at different times for users in New York versus London.
DAY
time granularity, the timezone determines the start and end of each day in the user’s timezone.
timeZone
input fieldtimeZone
field in Counter, Data Grid, Time Series, Leaderboard, Metric Report, and Top Values queries. By default, it is set to UTC
.
A Time Series query with a timeZone
field looks like this:
timeZone
field can be any timezone in the tz database, for example “America/New_York” or “Europe/Paris”. You can view the full list of tz database timezones on this Wikipedia page.
timeRange
?"timeZone": "America/New_York"
to specify the starting and end times for "granularity": "DAY"
.
toISOString()
. It will return the correct format for timeRange
.