New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Timezone handling in Druid driver #3386
Comments
+1 This problem comes from the query since This works correctly on OS X. Postgres (both) |
I run the same query on Metabase and directly on the DB and I get different results. |
@jesusrtc this issue is about the Druid database, but it sounds like you're talking about using Postgres. |
@moumny did the two PRs you opened resolve this, or are there still more timezone issues? |
@camsaul The problem is that it seems the query runs on a different time zone, for example when I run: SELECT count(*) When I run it at 8:00PM in SF it shows: |
@jesusrtc, yes you should open a different issue because this issue is talking about Druid, not Postgres. It will make it hard for other people to find our discussion if it's in a place nobody would think to look 😉 Check out our guide to handling timezones. I'm guessing you just need to set the Report Timezone setting in the admin panel. If that doesn't work, please open a new issue 👍 |
The last timezone issue was fixed by c45e9ee (workaround removal) ! Anyway, thanks to @camsaul and @tlrobinson for your help ! |
There are a couple of issues Druid driver handling of timezones.
Currently queries the dates in UTC. For example when querying for today the intervals are "intervals":["2016-09-23T00:00:00.000Z/2016-09-24T00:00:00.000Z"]
The second issue is with displaying the timestamps in the table view for example.
In HEAD The timeseries query display the time in local time (configured in the admin panel) while the GroupBy displays is in UTC. In 0.19.3 the timestamps are displayed in UTC.
Not sure why this happens the proper timezone is included in the druid query in both cases and the output look the same.
The text was updated successfully, but these errors were encountered: