We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
DstTzInfo.localize() breaks for date '9999-12-31'
pytz.timezone("US/Pacific").localize(datetime(9999,12,31))
OverflowError: date value out of range
Bug in
pytz/src/pytz/tzinfo.py
Line 322 in efeb395
Adding 1 day to 9999-12-31 is a date overflow
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug
DstTzInfo.localize() breaks for date '9999-12-31'
Steps to reproduce
pytz.timezone("US/Pacific").localize(datetime(9999,12,31))
Error
OverflowError: date value out of range
Notes
Bug in
pytz/src/pytz/tzinfo.py
Line 322 in efeb395
Adding 1 day to 9999-12-31 is a date overflow
The text was updated successfully, but these errors were encountered: