superset icon indicating copy to clipboard operation
superset copied to clipboard

Timezone offset doesn't work.

Open maltitco opened this issue 5 years ago • 12 comments

The "Timezone offset" doesn't work for the postergsql database. I am trying to display a list of records for my local time, despite setting the offset to 2 hours I still have UTC time.

I tested two ways to install the superset: using Docker and local development installation.

Edit: I also tested this for example data that can be initiated by installing a superset. Timezone offset setting for the flight table also does not shift time from UTC to my local.

maltitco avatar Aug 01 '19 11:08 maltitco

@maltitco - which version are you running? Have you been able to test this on v0.33.0rc1?

ericandrewmeadows avatar Aug 19 '19 03:08 ericandrewmeadows

I have also found same issue. I have configured time offset into data source configuration to 11(Australia/Melbourne). After configuration, still I am not able to get the data according to the time offset. I am using druid cluster.

viveksatasiya avatar Oct 11 '19 11:10 viveksatasiya

@ericandrewmeadows version from git in file superset/assets/package.json is "0.999.0dev" @viveksatasiya I am using the postgresql database and as a workaround, I set my time zone for the user connecting to the database

maltitco avatar Oct 11 '19 12:10 maltitco

@maltitco how to do it with the druid cluster?

viveksatasiya avatar Oct 14 '19 06:10 viveksatasiya

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

stale[bot] avatar Dec 13 '19 07:12 stale[bot]

@viveksatasiya i don't use druid cluster.

maltitco avatar Dec 13 '19 07:12 maltitco

Any Update on this !

TheRum avatar Dec 23 '19 06:12 TheRum

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

stale[bot] avatar Feb 21 '20 06:02 stale[bot]

update! I have found the same issue. T.T

jiade52000 avatar Jan 25 '21 05:01 jiade52000

found the same issue, too.

poleft avatar Mar 05 '21 03:03 poleft

found the same issue, too.

skymarstroy avatar Apr 27 '21 06:04 skymarstroy

found the same issue, too.

waqasakramef avatar Sep 16 '22 06:09 waqasakramef

Still facing the same issue.

raowaqasakram avatar Sep 26 '22 07:09 raowaqasakram

@zhaoyongjie if I recall correctly, you were just mentioning a timezone offset issue you spotted. Is that related to this bug, which incidentally our very oldest open bug report? 🤞

rusackas avatar Dec 13 '22 00:12 rusackas

Why the Hours offset doesn't support float values? I need float values for IST (+5:30)

manojsahukar avatar Mar 21 '23 12:03 manojsahukar

+1 why it's not working for float values

alex1404 avatar Jul 10 '23 14:07 alex1404

A workaround is alter role <superset-role> set time zone <my-time-zone>; for the role used in the superset data connection, so that date_trunc etc used in charts are against local time.

irisjae avatar Jan 02 '24 15:01 irisjae

@john-bodley you have any context on this? The issue is an antique, but seemingly ever-present.

rusackas avatar Feb 01 '24 20:02 rusackas

@rusackas no I don't and I'm not well educated in the PostgreSQL space.

Would someone be able to provide a concrete example (with SQL and possibly screenshots) of the exact problem? I know timezones can be tricky and I'm not overly sure how well they are supported in Superset (for context at Airbnb our data is encoded at UTC and thus we likely haven't experienced any time zone offset quirks).

To further complicate things the underlying DB-API needs to handle timezones as well as I suspect not all do. I previously added this document which highlights a slew of headaches when dealing with timezones, if that helps.

john-bodley avatar Feb 01 '24 22:02 john-bodley

This has gone silent again... if nobody wants to pick this up, we'll call it stale and close it out.

rusackas avatar May 31 '24 22:05 rusackas