DateTimeFormat.parse() rejects four-digit years when pattern is 'M/d/yy'.
Bug #677650 reported by
Marius Gedminas
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zope.i18n |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
I've a zope.schema.Date field in a z3c.form. It accepts dates like
11/20/10
but rejects dates like
11/20/2010
with an error of "The datetime string did not match the pattern u'M/d/yy'."
This is rather unfriendly; the date is clearly unambiguous and should be accepted.
To post a comment you must log in.
Now tracked on Github:
https:/ /github. com/zopefoundat ion/zope. i18n/issues/ 11