sugar.activity class should call locale.setlocale()
|Reported by:||pierre||Owned by:||sayamindu|
|Keywords:||french date format localization locale||Cc:|
|Deployments affected:||Action Needed:||review|
When changing the locale to French/France, the date format is not correct.
On the XO, I get:
$ date lun fév 4 23:38:11 EST 2008
I would expect a more Frenchy format like the one I get on my Debian server (notice that the day number "4" is between the day name "lundi" and the month name "février"):
$ date lundi 4 février 2008, 23:33:09 (UTC-0500)
Also, that small python program show that dates are displayed the American way (Month/Day/Year: 02/04/08) instead of the French one (Day/Month/Year: 04/02/08):
#!/usr/bin/env python from datetime import datetime print datetime.now().strftime("%x")
In an activity, this date is displayed "04.02.2008" when one would expect "04/02/2008" (or "04/02/08" like run from the command line).
When changing the locale to French/Canada, problems are similar but we should get the same formats as French/France. From the command line, results are as bad. From an activity, the date is displayed like "2008-02-05", which is definitely not usual.
Change History (12)
comment:4 Changed 7 years ago by pierre
- Action Needed set to review
- Version changed from Build 653 to Q2D16
comment:5 Changed 7 years ago by pierre
- Summary changed from French date format is not correct to sugar.activity class should call locale.setlocale()