PDA

View Full Version : [1.1.1] Datefield localization bug



RutgerB
9 Oct 2007, 12:06 AM
Hey,

When using a certain dateformat (named months ie.) and using dutch localization you cannot set a date because it pops back to 1970 after it loses focus.

Check out the demo here:

http://rutgerb.com/datefield

mystix
9 Oct 2007, 7:27 AM
man this was a real PITB to debug ;) took me an hour and a half. :((

the monthNumbers are missing from the localisation file. this will be fixed in SVN soon.

add this to your locale file (i.e. ext-lang-nl.js) in the meantime


Date.monthNumbers = {
Jan:0,
Feb:1,
Maa:2,
Apr:3,
Mei:4,
Jun:5,
Jul:6,
Aug:7,
Sep:8,
Okt:9,
Nov:10,
Dec:11
};


[edit]
pls edit the month name abbreviations to suit your locale. i can't seem to find a good reference on month name abbreviations for different locales.