power-media / prado3

Automatically exported from code.google.com/p/prado3
Other
0 stars 0 forks source link

French Canadian date formats should be the same in TDateFormat and TDatePicker #436

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

TDateFormat mediumdate and shortdate formats should be the same as 
TDatePicker's format in fr_CA culture.

TDatePicker's format is : dd-mm-yyyy
TDateFormat's shortdate and mediumdate are currently : yy-mm-dd

shortdate and mediumdate should be dd-mm-yyyy or they should all be yyyy-mm-dd.

At least, mediumdate should have the year with 4 numbers.

Tested on Prado v3.2.1.

Thanks.

Original issue reported on code.google.com by patricel...@gmail.com on 30 Jan 2013 at 4:53

GoogleCodeExporter commented 8 years ago
Currently TDatePicker is using the culture information only to display the 
localized day/month names, while the format of the date is only controlled by 
the "Pattern" property.

We are using ICU data in order to provide TDateFormat methods; while our data 
is a bit outdated (we must surely fix this in the immediate future), i checked 
the most up-to-date data at:
http://source.icu-project.org/repos/icu/icu/trunk/source/data/locales/fr_CA.txt
and the DateTimePatterns for shortdate seems to be correct. The one for 
mediumdate was wrong as you noticed and has been fixed in r3267.

Original comment by ctrlal...@gmail.com on 31 Jan 2013 at 2:52

GoogleCodeExporter commented 8 years ago
Closing this ticket; i've opened ticket #438 in order to solve the more general 
problem of bundling more up-to-date (and hopefully more polished) ICU data with 
prado.

Original comment by ctrlal...@gmail.com on 5 Feb 2013 at 11:46