You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In [72]: maya.when('2016-01-01').datetime(to_timezone='US/Eastern')
Out[72]: datetime.datetime(2015, 12, 31, 19, 0, tzinfo=<UTC>)
Why, if datetime() is called using to_timezone='US/Eastern', the resulting datetime object has tz_info=UTC?
Note that the resulting time is correctly UTC New Year in US/Eastern, but the tzinfo is wrong.
It's as if the resulting timezone was "replaced" rather than converted.
The text was updated successfully, but these errors were encountered:
I find the below confusing:
Why, if
datetime()
is called usingto_timezone='US/Eastern'
, the resulting datetime object hastz_info=UTC
?Note that the resulting time is correctly UTC New Year in US/Eastern, but the tzinfo is wrong.
It's as if the resulting timezone was "replaced" rather than converted.
The text was updated successfully, but these errors were encountered: