You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2018/07/23 18:53:48 UTC
[GitHub] sbarlock commented on issue #5015: Tz-aware datetime.datetime
cannot be converted to datetime64 unless utc=True [Continued]
sbarlock commented on issue #5015: Tz-aware datetime.datetime cannot be converted to datetime64 unless utc=True [Continued]
URL: https://github.com/apache/incubator-superset/issues/5015#issuecomment-407163684
After further investigation, the problem is solved by modifying viz.py to set:
`df[DTTM_ALIAS] = pd.to_datetime(df[DTTM_ALIAS], utc=True, format=timestamp_format)`
instead of utc=False.
Should this not be set by default as all SQL queries are made using AT TIME ZONE 'UTC' ?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org