Opened 8 years ago

Closed 6 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:

Description

Hi,

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

Test case reproducing the issue: http://jsfiddle.net/gHjuJ/1/

This ticket might be related: http://bugs.jqueryui.com/ticket/3974

Change History (3)

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

Milestone: 1.9.01.11.0

comment:2 Changed 7 years ago by mikesherov

Status: newopen

Confirmed on latest: http://jsfiddle.net/zdcVY/1/

comment:3 Changed 6 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: http://jsfiddle.net/gHjuJ/20/

Note: See TracTickets for help on using tickets.