DateTimeParser fails silently for certain inputs
Bug #139360 reported by
Jonathan Knowles
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
BlueBream |
New
|
Undecided
|
Unassigned | ||
Launchpad itself |
Won't Fix
|
Low
|
Unassigned | ||
Zope 3 |
Won't Fix
|
Undecided
|
Unassigned | ||
zope.datetime |
Fix Released
|
Undecided
|
Tres Seaver |
Bug Description
DateTimeParser fails silently for several classes of date with the hyphen ("-") as a separator character:
* M-DD-YYYY
* MM-D-YYYY
* YYYY-M-D
* YYYY-M-DD
* YYYY-MM-D
For dates matching any of the above patterns, DateTimeParser ignores the month and day components and always returns 1 for the month and day values. For example, the string '2-13-2001' is interpreted as January 1st 2001.
Seen in version 38178 of zope.app.
Changed in blueprint: | |
assignee: | nobody → jsk |
importance: | Undecided → High |
Changed in blueprint: | |
assignee: | jsk → nobody |
Changed in launchpad: | |
importance: | Undecided → High |
Changed in blueprint: | |
milestone: | 1.1.10 → none |
Changed in blueprint: | |
importance: | High → Low |
Changed in launchpad-foundations: | |
importance: | High → Low |
Changed in zope3: | |
status: | Confirmed → Won't Fix |
To post a comment you must log in.
A summary of the failing patterns with examples.