Ticket #9689 (closed bug: notabug)
Entering unusual date format and hitting enter in datepicker results in today's date
|Reported by:||machineghost||Owned by:|
- Start with a datepicker (eg. the one at http://jqueryui.com/datepicker/)
- Enter the text "2011/08/05" and press enter
- Rather than A) converting the date to the proper format, B) clearing the text field as invalid, or C) alerting the user, the datepicker does D) replace the entered date with today's date (and if the user is unobservant they won't even realize that their date was replaced)
Conversely, if you do the same exact thing, except hit "tab" (or click away or otherwise lose focus) instead of hitting "enter" the entered string remains in the datepicker.
I'm not sure what the right behavior is (converting the date would seem correct, but I don't know what formats the datepicker officially supports), but silently replacing the user-entered date with another date is definitely the wrong behavior.