avoid crash on negative time ordinal
Bug #1296328 reported by
Wayne Davison
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dateutil |
New
|
Undecided
|
Unassigned |
Bug Description
Some systems cannot handle a negative value in time.localtime() -- they raise a ValueError. The code should check for such a system and take steps to avoid the crash.
I've attached a (very lightly tested) patch.
To post a comment you must log in.
This version of the patch is much better than the last.