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/11/28 05:30:24 UTC

[GitHub] villebro opened a new pull request #6453: Ensure that dttm is of same timezone as epoch_with_tz

villebro opened a new pull request #6453: Ensure that dttm is of same timezone as epoch_with_tz
URL: https://github.com/apache/incubator-superset/pull/6453
 
 
   When querying columns with timezone on `postgres` and `redshift`, `psycopg2` returns `datetime` objects with`tzinfo` of type `psycopg2.tz.FixedOffsetTimezone` which is incompatible with `pytz.utc`. This PR ensures that `dttm` is always of type `pytz.utc`. Should have no adverse effects on other engines, as subtraction is only possible if both datetimes are of same timezone. Closes #5910, closes #6284
   
   ![image](https://user-images.githubusercontent.com/33317356/49130855-87372600-f2de-11e8-82d1-cc98182889f6.png)
   

----------------------------------------------------------------
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