#6659 closed bug (fixed)
Datepicker: Date format ymmdd not parsed correctly
Reported by: | pheiberg | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.8.7 |
Component: | ui.datepicker | Version: | 1.8.6 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
When using a date format containing y (two digit year), the date is not parsed correctly. This also results in that setting the dateFormat option on datepicker to such a date format causes the calender to not select the selected date in the calendar.
Failing test to reproduce error:
equalsDate($.datepicker.parseDate('ymmdd', '010203'), new Date(2001, 2 - 1, 3), 'Parse date ymmdd - default cutoff');
The error was reproduced in both Chrome and IE8 in jQuery UI versions 1.8.6 and the most recent clone of master.
Change History (7)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
Milestone: | TBD → 1.9 |
---|---|
Status: | new → open |
Summary: | Date format ymmdd not parsed correctly → Datepicker: Date format ymmdd not parsed correctly |
comment:3 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | open → closed |
Datepicker: Fixed parsing of single y character for date formats. Fixes #6659 - Datepicker: Date format ymmdd not parsed correctly.
Changeset: a2e0eb920aaa41e6248e1a2f7d013997ba4f421f
comment:6 Changed 12 years ago by
Milestone: | 1.9 → 1.8.7 |
---|
Note: See
TracTickets for help on using
tickets.
Proposed fix commited and pull request made.