Skip to main content

Search and Top Navigation

#10209 closed bug (notabug)

Opened July 15, 2014 11:56AM UTC

Closed July 15, 2014 12:36PM UTC

Last modified July 15, 2014 12:51PM UTC

Datepicker will shown Monthname -1

Reported by: glueck Owned by:
Priority: minor Milestone: none
Component: ui.datepicker Version: 1.11.0
Keywords: Cc:
Blocked by: Blocking:
Description

If changeMonth: true and the regional changed to 'de' (german) then the shown month is wrong (eq current -1)

You can proof at: http://jsfiddle.net/f9mG4/

It must be "Oktober" but "September" is shown.

Attachments (0)
Change History (4)

Changed July 15, 2014 12:36PM UTC by scottgonzalez comment:1

_comment0: That fiddle doesn't event set a date, so it can't be wrong.1405427828521617
resolution: → notabug
status: newclosed

That fiddle doesn't even set a date, so it can't be wrong.

Changed July 15, 2014 12:39PM UTC by scottgonzalez comment:2

Looking at it more closely, you're setting showCurrentAtPos to 1, so it *should* be off by one month.

Changed July 15, 2014 12:48PM UTC by glueck comment:3

_comment0: Why the datepicker catches the year correct and the month is allways the month from the textbox -1 ? \ And this is not a Bug? \ You can try in the fiddle above i add some fields with different dates and the datepicker catch the values but incorrekt.1405428689774881

Why the datepicker catches the year correct and the month is allways the month from the textbox -1 ?

And this is not a Bug?

You can try in the fiddle above i add some fields with different dates and the datepicker catch the values but incorrekt.

#! The Bug is the "showCurrentAtPos" is only 1 month is shown it will work not correct.

Changed July 15, 2014 12:51PM UTC by scottgonzalez comment:4

Please read the documentation for the options you're using. http://api.jqueryui.com/datepicker/#option-showCurrentAtPos