locales: en_CA: update d_fmt [BZ #9842]

Message ID 1439530204-15561-1-git-send-email-vapier@gentoo.org
State Committed
Delegated to: Mike Frysinger
Headers

Commit Message

Mike Frysinger Aug. 14, 2015, 5:30 a.m. UTC
  From: Martin Pitt <martin.pitt@ubuntu.com>

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:
http://www.nrc-cnrc.gc.ca/eng/services/time/faq/#Q8
 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  <martin.pitt@ubuntu.com>

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

Comments

Mike Frysinger Aug. 29, 2015, 8:29 p.m. UTC | #1
ping ...
-mike

On 14 Aug 2015 01:30, Mike Frysinger wrote:
> From: Martin Pitt <martin.pitt@ubuntu.com>
> 
> 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:
> http://www.nrc-cnrc.gc.ca/eng/services/time/faq/#Q8
>  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  <martin.pitt@ubuntu.com>
> 
> 	[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>";/
>              "<U004E><U006F><U0076><U0065><U006D><U0062><U0065><U0072>";/
>              "<U0044><U0065><U0063><U0065><U006D><U0062><U0065><U0072>"
>  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>"
> -- 
> 2.4.4
>
  
Carlos O'Donell Aug. 9, 2016, 5:35 a.m. UTC | #2
On 08/29/2015 04:29 PM, Mike Frysinger wrote:

>> 2015-08-14  Martin Pitt  <martin.pitt@ubuntu.com>
>>
>> 	[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>";/
>>              "<U004E><U006F><U0076><U0065><U006D><U0062><U0065><U0072>";/
>>              "<U0044><U0065><U0063><U0065><U006D><U0062><U0065><U0072>"
>>  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>"

Please commit.

This looks perfectly fine to me as a Canadian.

The current %d/%m/%y is certainly wrong.
  

Patch

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>";/
             "<U004E><U006F><U0076><U0065><U006D><U0062><U0065><U0072>";/
             "<U0044><U0065><U0063><U0065><U006D><U0062><U0065><U0072>"
 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>"