Skip to main content

Search and Top Navigation

#8151 closed bug (duplicate)

Opened March 01, 2012 12:46AM UTC

Closed March 01, 2012 02:02AM UTC

Last modified March 01, 2012 02:02AM UTC

Setting a dateFormat without the year makes getDate always return the current year

Reported by: nfm Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.datepicker Version: 1.8.16
Keywords: Cc:
Blocked by: Blocking:
Description

With dateFormat set to 'D dd M', and a date from the previous year selected (eg 1 Jan 2011), getDate will incorrectly return the current year (eg 1 Jan 2012).

This is inconsistent with altField, and makes it impossible to programmatically get the date with correct year from the datepicker.

I believe this still affects 1.8.18, but jsFiddle only currently has 1.8.16.

Attachments (0)
Change History (3)

Changed March 01, 2012 12:49AM UTC by nfm comment:1

Link to test case:

http://jsfiddle.net/PcCXV/

(Aside: flagging submissions as spam if they contain links is total insanity.)

Changed March 01, 2012 02:02AM UTC by scottgonzalez comment:2

resolution: → duplicate
status: newclosed

Changed March 01, 2012 02:02AM UTC by scottgonzalez comment:3

Duplicate of #7759.