Cannot localize days on boundary of representable dates
Bug #1435758 reported by
david@drmaciver.com
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pytz |
New
|
Undecided
|
Unassigned |
Bug Description
Either of the following will error with an OverflowError: date value out of range:
pytz.timezone(
pytz.timezone(
This is because in the localize function (tzinfo.py:309 in the 2015.2 release) you look at the previous and the next day, but those might not be representable dates.
To post a comment you must log in.