Incorrect date format in en_CA.UTF-8 locale
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
langpack-locales (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
Bug #214730 resulted in an *incorrect* change of d_fmt in the Canadian English/UTF-8 locale.
The date format was "%d/%m/%y" (04/02/10), then it was changed to "%y-%m-%d" (10-02-04). Even though the bug thread cited several references to Canadian standard CSA Z234.5:1989, which is identical to ISO 8601, the second format is ALSO incorrect.
From http://
"ISO 8601 prescribes, as a minimum, a four-digit year [YYYY] to avoid the year 2000 problem."
From the FAQ page at the Government of Canada website (http://
"The recommended full format is of the form 2001-12-31 23:59:28.73 UTC."
The correct format is "%Y-%m-%d" (2010-02-04).
$ lsb_release -rd && apt-cache policy locales
Description: Ubuntu 9.10
Release: 9.10
locales:
Installed: 2.9+git20090617-3
Candidate: 2.9+git20090617-3
Version table:
*** 2.9+git20090617-3 0
500 http://
100 /var/lib/
In the file debian/ patches/ ubuntu- en_CA-dateforma t.patch, the lines:
-d_fmt "<U0025> <U0064> <U002F> <U0025> <U006D> <U002F> <U0025> <U0079> " <U0079> <U002D> <U0025> <U006D> <U002D> <U0025> <U0064> "
+d_fmt "<U0025>
...should instead be:
-d_fmt "<U0025> <U0064> <U002F> <U0025> <U006D> <U002F> <U0025> <U0079> " <U0059> <U002D> <U0025> <U006D> <U002D> <U0025> <U0064> "
+d_fmt "<U0025>