Skip to main content

Search and Top Navigation

#6800 closed bug (wontfix)

Opened January 03, 2011 07:10PM UTC

Closed January 05, 2011 03:18AM UTC

When the date is formatted without the year, the year value gets corrupted.

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

When the date is formatted using 'M d' the year gets corrupted.

When you 'getDate' from the widget, the date is of the current year, even if the date selected was from a prior year.

Try it using the this fiddle ( http://jsfiddle.net/PnJf9/ )

Select Dec 3, 2010 and then click the "Show Date" button. For the first one, you get the correct value. For the second one, it sets the date to the current year.

Attachments (0)
Change History (1)

Changed January 05, 2011 03:18AM UTC by scottgonzalez comment:1

resolution: → wontfix
status: newclosed

I'm not really sure whether this should be closed as wontfix or invalid. If you don't want to use the year as part of the date, then we can't remember the full date. You can use the altField option or manually update the text field, but there won't be a direct way to handle users manually typing a value. If you want to discuss this, please use the forums.