Opened 11 years ago

Closed 10 years ago

#9127 closed defect (worksforme)

dojo.date.locale.parse

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

Description

Hi.

Maybe I'm doing something wrong but I cant get the parse method to work.

For example:

dojo.date.locale.parse("2008-05-05 14:45", {locale:'sv'});

The above does not work in 1.3.0 but it works in 1.2.2.

Regards Niclas

Change History (3)

comment:1 Changed 11 years ago by nirre

Additional information: I have built Dojo with the parameter:

localeList="en-gb,en-us,de-de,es-es,fr-fr,it-it,pt-br,ko-kr,zh-tw,zh-cn,ja-jp,sv,fi,da,no,pl"

There are locale specific settings in dojo/cldr/nls/sv/

And the following is included in the locale.js:

dojo.requireLocalization("dojo.cldr","gregorian",null,"zh-cn,zh,en-ca,ko-kr,pt,pt-br,it-it,ROOT,en-gb,de,ja,en,en-au,fr,es,ko,zh-tw,it,es-es,no,sv,fi,da,pl");

Regards Niclas

comment:2 Changed 11 years ago by Adam Peller

Please attach a full page to test. Are you declaring djConfig.locale, or is your browser installation native Swedish? (check navigator.language and dojo.locale after loading your page)

comment:3 Changed 10 years ago by Adam Peller

Resolution: worksforme
Status: newclosed

perhaps the cldr changed between these two releases. Currently, Swedish dates are formatted as hh.mm instead of hh:mm

Note: See TracTickets for help on using tickets.