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 [1]: pd.__version__
Out[1]: '0.23.0rc2+16.gccf4b96.dirty'
In [2]: val = [pd.Timestamp('2018-01-01', tz='US/Pacific').value]
In [3]: pd.Index(val, dtype='datetime64[ns, US/Pacific]')
Out[3]: DatetimeIndex(['2018-01-01 08:00:00-08:00'], dtype='datetime64[ns, US/Pacific]', freq=None)
The localization appears to localize directly to the timezone instead of localizing first to UTC and therefore does not roundtrip correctly from the timestamp value.
mroeschke
changed the title
BUG: Index with datetime64[ns, tz] dtype does not localize correctly
BUG: Index with integer data and datetime64[ns, tz] dtype does not localize correctly
May 7, 2018
The localization appears to localize directly to the timezone instead of localizing first to UTC and therefore does not roundtrip correctly from the timestamp value.
#20956 can be simplified once this is fixed.
Expected:
The text was updated successfully, but these errors were encountered: