Skip to content

ENH: support zoneinfo tzinfos #46425

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 21 commits into from
Apr 18, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix tznaive acse
  • Loading branch information
jbrockmendel committed Mar 24, 2022
commit c0bc310339d9a346beb64cf0d8a41ec08ce15f8b
2 changes: 1 addition & 1 deletion pandas/_libs/tslibs/tzconversion.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ cdef const int64_t[:] _tz_convert_from_utc(const int64_t[:] stamps, tzinfo tz):

int64_t[::1] result

if is_utc(tz):
if is_utc(tz) or tz is None:
# Much faster than going through the "standard" pattern below
return stamps.copy()

Expand Down