DstTzInfo.localize() breaks for date '9999-12-31'
prasidmitra opened this issue · 0 comments
prasidmitra commented
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
Line 322 in efeb395
Adding 1 day to 9999-12-31 is a date overflow