avoid crash on negative time ordinal

Bug #1296328 reported by Wayne Davison
6
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.

Revision history for this message
Wayne Davison (wayned) wrote :

This version of the patch is much better than the last.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.