rilldata / rill

Rill is a tool for effortlessly transforming data sets into powerful, opinionated dashboards using SQL. BI-as-code.

Home Page:https://www.rilldata.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dashboard: apply time zone to Leaderboard query

ericpgreen2 opened this issue · comments

The requests to compare-toplist do not currently include the selected time zone.

More context in Slack

The compare-toplist does not time a timezone as the dates are already provided in UTC.

For the timeseries query, we have to aggregate into periodic buckets for displaying the chart. This is not the case for leaderboard as no bucketing is required between start and end time.

The dates change because of the time preset selected. For ex- Last 24 hours for PST might be different than Last 24 hours IST because of a shift of 30 mins for getting a full hour. But in general the time string passed is in UTC.