Search and Top Navigation
#5113 closed bug (notabug)
Opened January 30, 2010 04:14PM UTC
Closed January 31, 2010 04:48PM UTC
Last modified October 11, 2012 09:15PM UTC
dateFormat causes default input date to reset to today
Reported by: | rvallee | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | ui.datepicker | Version: | 1.7.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
When specifying a dateFormat (in my case dd/mm/yy), the default input value (i.e. value="date" in the HTML form) is reset to today's date.
During loading, I first see the date change, then the format apply.
So in short:
- Input field has 31/01/2010 value for January 31, 2010
- During datepicker load, input field value changes to 01/30/2010 (today's date in default format)
- dateFormat applies, changing input display to 30/01/2010, today's date in dateFormat
Nevermind...
I was copy-pasting options and this problem only occurs if there are 2 dateFormat declarations..