click-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philip Mulrane (e-Cube)" <philip.mulr...@e-cube.de>
Subject Incorrect date string creation in German Locale with click-extras-2.2.0.jar DateField
Date Mon, 20 Dec 2010 11:54:10 GMT
Hi,
I've been using click and click-extras-2.2.0.jar in a Java Project.
The German de.js belonging to calendar_date_select.js only has correct 
names for the full month names, this means that using a date format 
string line "dd MMM" you will get "20 Dec" and not "20 Dez". This 
produces a string that will throw a parse exception when you try to 
parse it using SimpleDateFormat in a German locale.
Here are the corrections:
------------------------------------
// Month abbreviations
Date.monthAbbreviations = new 
Array('Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez');

// Full day names
Date.dayNames = new 
Array('Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag');

// Day abbreviations
Date.dayAbbreviations = new Array('So','Mo','Di','Mi','Do','Fr','Sa');
------------------------------------
If someone would point me in the right direction, I would be happy to 
make the changes in the repository.
,Philip



-- 
Philip Mulrane,
e-Cube GmbH
Helenen Str.19
31812 Bad Pyrmont
Amtsgericht Hildesheim,
HRB 101475,
Geschäftsführer: Jürgen Schaffhausen, Philip Mulrane, Luca Lorandi


philip.mulrane@e-cube.de
Tel.   +49 (0) 5281  160 51 56 (Bad Pyrmont)
Fax    +49 (0) 5281  160 18 65 (Bad Pyrmont)
Mobile +49 (0)  151  15784549
  


Mime
View raw message