Opened 12 years ago

Closed 10 years ago

#7253 closed bug (notabug)

jQuery UI DatePicker i18n language + formatDate issue (Chinese)

Reported by: TiTi Owned by:
Priority: minor Milestone: 1.11.0
Component: ui.datepicker Version: 1.8.11
Keywords: Cc:
Blocked by: Blocking:



I've detected a bug related to $.datepicker.formatDate() and internationalization. Previously registered language seems to be applied :-(

Test case reproducing the issue:

This ticket might be related:

Change History (3)

comment:1 Changed 10 years ago by Scott González


comment:2 Changed 10 years ago by mikesherov

Status: newopen

Confirmed on latest:

comment:3 Changed 10 years ago by Scott González

Resolution: notabug
Status: openclosed

That's because you're not invoking a method on the instance. The zh-TW locale is applied as the new value for all new datepicker instances, and for any non-instance methods. The fr locale is only applied to the specific instance you've created.

You can provide locale data for $.datepicker.formatDate if you want:

Note: See TracTickets for help on using tickets.