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
The text was updated successfully, but these errors were encountered:
duckcoder8
changed the title
pandas.Series.to_json() unexpectedly localizes tz-naive datetimes to UTC
pandas.Series.to_json() incorrectly localizes tz-naive datetimes to UTC
Dec 28, 2020
to_json converts to UTC when encoding ISO formatted datetimes #12997 mentions timezone conversion on a tz-aware timestamp (which points to a same instant, so somehow correct though clearly unexpected), while the present issue mentions localization of tz-naive timestamps (which is plainly incorrect):
Seemingly related but not identical to #12997
How to reproduce the bug
Checked with pandas 0.24.2, 1.1.5 and 1.2.0.
Output
(Notice the "Z" indicating UTC)
Expected output
(without "Z")
The text was updated successfully, but these errors were encountered: