Search and Top Navigation
#6659 closed bug (fixed)
Opened November 16, 2010 08:50PM UTC
Closed November 18, 2010 09:14PM UTC
Last modified October 17, 2012 04:48AM UTC
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.
Attachments (0)
Change History (7)
Changed November 16, 2010 09:15PM UTC by comment:1
Changed November 18, 2010 09:14PM UTC by comment:2
milestone: | TBD → 1.9 |
---|---|
status: | new → open |
summary: | Date format ymmdd not parsed correctly → Datepicker: Date format ymmdd not parsed correctly |
Changed November 18, 2010 09:14PM UTC by comment:3
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
Changed December 08, 2010 06:37PM UTC by comment:6
milestone: | 1.9 → 1.8.7 |
---|
Proposed fix commited and pull request made.