Opened 15 years ago
Closed 15 years ago
#13592 closed (fixed)
SelectDateWidget should use datetime_safe
Description ¶
Currently, SelectDateWidget.value_from_datadict throws a ValueError courtesy of strftime when L10N is enabled and a year before 1900 is entered. The date should be converted to datetime_safe before strftime is called.
Change History (2)
by , 15 years ago
Attachment: | selectdatewidget.patch added |
---|
comment:1 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
(In [13301]) Fixed #13592 -- Make sure the SelectDateWidget works with dates before 1900 when localization is enabled. Thanks for the report and patch, magnus.