This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] locales: en_CA: update d_fmt [BZ #9842]

From: Martin Pitt <>

The date format in en_CA.utf8/LC_TIME specifies the date format as
"%d/%m/%y".  (This is also the case if you run the command 'locale
LC_TIME' with your locale set to en_CA.utf8.)  However, it should
be "%Y-%m-%d".  This is the standard date format in Canada (as
specified by the Canadian Standards Association in CSA Z234.5:1989,
which adopts the ISO 8601 standard).

Here's the web page from the National Research Council of Canada
citing ISO 8601 as the standard date/time format in Canada:
 International Standard ISO 8601 specifies numeric representations
 of date and time. The recommended full format is of the form
 2001-12-31 23:59:28.73 UTC. The intent of this standard is to avoid
 confusion in international communications which can arise with the
 many different national notations. This format has the advantage
 that it permits dates to be readily sorted in chronological order
 by computer systems.

Windows 8+ and OS X also switched to this format.

2015-08-14  Martin Pitt  <>

	[BZ #9842]
	* locales/en_CA (d_fmt): Change to %Y-%m-%d.
 localedata/locales/en_CA | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/localedata/locales/en_CA b/localedata/locales/en_CA
index bc52baa..6f09281 100644
--- a/localedata/locales/en_CA
+++ b/localedata/locales/en_CA
@@ -124,7 +124,7 @@ mon         "<U004A><U0061><U006E><U0075><U0061><U0072><U0079>";/
 d_t_fmt     "<U0025><U0061><U0020><U0025><U0064><U0020><U0025><U0062><U0020><U0025><U0059><U0020><U0025><U0072><U0020><U0025><U005A>"
-d_fmt       "<U0025><U0064><U002F><U0025><U006D><U002F><U0025><U0079>"
+d_fmt       "<U0025><U0059><U002D><U0025><U006D><U002D><U0025><U0064>"
 t_fmt       "<U0025><U0072>"
 am_pm       "<U0041><U004D>";"<U0050><U004D>"
 t_fmt_ampm  "<U0025><U0049><U003A><U0025><U004D><U003A><U0025><U0053><U0020><U0025><U0070>"

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]