Skip to main content

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 pheiberg comment:1

Proposed fix commited and pull request made.

Changed November 18, 2010 09:14PM UTC by scottgonzalez comment:2

milestone: TBD1.9
status: newopen
summary: Date format ymmdd not parsed correctlyDatepicker: Date format ymmdd not parsed correctly

Changed November 18, 2010 09:14PM UTC by pheiberg comment:3

resolution: → fixed
status: openclosed

Datepicker: Fixed parsing of single y character for date formats. Fixes #6659 - Datepicker: Date format ymmdd not parsed correctly.

Changeset: a2e0eb920aaa41e6248e1a2f7d013997ba4f421f

Changed November 22, 2010 06:36PM UTC by scottgonzalez comment:4

#5285 is a duplicate of this ticket.

Changed December 08, 2010 01:18PM UTC by scottgonzalez comment:5

#6731 is a duplicate of this ticket.

Changed December 08, 2010 06:37PM UTC by scottgonzalez comment:6

milestone: 1.91.8.7

Changed October 17, 2012 04:48AM UTC by mikesherov comment:7

#5632 is a duplicate of this ticket.