Opened 11 years ago

Closed 11 years ago

Last modified 8 years ago

#8522 closed defect (worksforme)

DateTextBox inconsistency whith french-canadian locales

Reported by: yoman Owned by: Adam Peller
Priority: high Milestone: tbd
Component: Date Version: 1.2.3
Keywords: Cc:
Blocked By: Blocking:

Description

In IE, change the language for your browser to French-Canadian and refresh.

The DateTextBox? will show the current selected date in yyyy-mm-dd format which is the correct pattern for this locale. When you click the text box to edit the pattern will change to dd/mm/yyyy.

Attachments (1)

test_DateTextBox-fr-ca-bug.html (1.7 KB) - added by Irfan Ahmed 8 years ago.
fr-ca date format not honoured

Download all attachments as: .zip

Change History (5)

comment:1 Changed 11 years ago by Adam Peller

can you provide specifics and a test case?

you typically cannot change the locale in the browser that dojo uses. the preferences setting is for the HTTP header, which is not going to have any effect unless you round-trip with a server and set djConfig.locale

comment:2 Changed 11 years ago by Adam Peller

Resolution: worksforme
Status: newclosed

djConfig.locale='fr-ca' works fine for me. Please re-open if you can provide an example and instructions to reproduce this.

Changed 8 years ago by Irfan Ahmed

fr-ca date format not honoured

comment:3 Changed 8 years ago by Irfan Ahmed

Setting djConfig.locale = "fr-ca" does not honor the french-canadian date format. This is using dojo 1.6.1

comment:4 Changed 8 years ago by Adam Peller

Do you have resources under dojo/cldr/nls/fr-ca? If not, you need to build them from the XML sources. Instructions can be found at util/buildscripts/cldr/README

Note: See TracTickets for help on using tickets.