-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
Why is pytz.timezone.localize returning different zones for the same month/date value in 2 different years? #131
Comments
More REPL traces:
|
pytz does not support dates after 2038-01-19 03:14:07 UTC, as far as I know. See https://en.wikipedia.org/wiki/Year_2038_problem |
Oh! That's interesting, @bxparks . Thanks for sharing this detail. |
Aside from changing to the 64-bit version of TZDB, tracking down every reference to the 32-bit epochseconds, updating all the tests, and verifying that everything is 100% backwards compatible and works correctly, I suppose no reason at all, except for time and motivation from the pytz maintainer (a single person I believe). The Y2038 problem for pytz is a long-standing issue, see #31 for example. You should consider migrating to zoneinfo if this problem is important for you. |
Why is the same date (May 2nd) in 2 different years (2019 vs. 2098) being converted to PDT in 2019 but PST in 2098?
Seems like some strange behavior in this package's
timezone().localize()
function, since the output of dateutil'sparser.parse()
does not really change except for the year which is passed in.Environment:
Thanks in advance for looking into this.
The text was updated successfully, but these errors were encountered: