Bug 200079 - [patch] Canada Uses ISO 8601 for Dates
Summary: [patch] Canada Uses ISO 8601 for Dates
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 10.1-RELEASE
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2015-05-09 19:06 UTC by A.J. Kehoe IV (Nanoman)
Modified: 2018-02-16 03:38 UTC (History)
1 user (show)

See Also:


Attachments
patch to add en_CA and fr_CA LC_TIME files (4.53 KB, patch)
2015-05-09 19:06 UTC, A.J. Kehoe IV (Nanoman)
no flags Details | Diff
en_CA and fr_CA ISO 8601 date format (550 bytes, patch)
2017-03-08 19:29 UTC, Dan McGregor
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description A.J. Kehoe IV (Nanoman) 2015-05-09 19:06:54 UTC
Created attachment 156577 [details]
patch to add en_CA and fr_CA LC_TIME files

Canada uses ISO 8601 for dates:

http://en.wikipedia.org/wiki/Date_and_time_notation_in_Canada

http://xkcd.com/1179/

Currently, en_CA is using en_GB's LC_TIME, which doesn't adhere to ISO 8601.  en_US doesn't adhere to ISO 8601 either, so en_CA will have to be a new addition.  fr_FR has this same issue, so fr_CA will have to be added too.

I've attached a patch for /head/share/timedef/.  This patch adds the files en_CA.ISO8859-1.src, fr_CA.ISO8859-1.src, and fr_CA.UTF-8.src, and modifies the Makefile to reflect these changes.
Comment 1 A.J. Kehoe IV (Nanoman) 2015-06-07 16:26:21 UTC
Canada's official time is defined by National Research Council Canada.  They recommend ISO 8601:

http://www.nrc-cnrc.gc.ca/eng/services/time/index.html

http://www.nrc-cnrc.gc.ca/eng/services/time/faq/#Q8
Comment 2 Dan McGregor 2017-03-08 19:29:39 UTC
Created attachment 180643 [details]
en_CA and fr_CA ISO 8601 date format

There is work in this direction with respect to importing CLDR (http://cldr.unicode.org/) locale data. I suspect this patch is out of date. I'm adding one against 12-CURRENT.
Comment 3 Dan McGregor 2017-03-08 21:24:22 UTC
I also created review D9925 for this.
Comment 4 commit-hook freebsd_committer freebsd_triage 2017-03-19 18:22:26 UTC
A commit references this bug:

Author: bapt
Date: Sun Mar 19 18:21:36 UTC 2017
New revision: 315571
URL: https://svnweb.freebsd.org/changeset/base/315571

Log:
  Canada adheres to ISO 8601, let's make the locale reflecting that fact

  PR:		200079
  MFC after:	1 week
  Submitted by:	Dan McGregor <dan.mcgregor@usask.ca>
  Reported by:	A.J. Kehoe IV (Nanoman) <freebsd-bugs@nanoman.ca>
  Differential Revision:	https://reviews.freebsd.org/D9925

Changes:
  head/share/timedef/ca_IT.ISO8859-15.src
  head/share/timedef/en_CA.UTF-8.src
  head/share/timedef/fr_CA.ISO8859-15.src
  head/share/timedef/fr_CA.UTF-8.src
Comment 5 A.J. Kehoe IV (Nanoman) 2017-03-19 21:34:09 UTC
Should "head/share/timedef/ca_IT.ISO8859-15.src" be renamed to "head/share/timedef/en_CA.ISO8859-15.src"?
Comment 6 commit-hook freebsd_committer freebsd_triage 2017-03-26 17:46:55 UTC
A commit references this bug:

Author: bapt
Date: Sun Mar 26 17:46:43 UTC 2017
New revision: 315991
URL: https://svnweb.freebsd.org/changeset/base/315991

Log:
  MFC r315571:

  Canada adheres to ISO 8601, let's make the locale reflecting that fact

  PR:		200079
  MFC after:	1 week
  Submitted by:	Dan McGregor <dan.mcgregor@usask.ca>
  Reported by:	A.J. Kehoe IV (Nanoman) <freebsd-bugs@nanoman.ca>
  Differential Revision:	https://reviews.freebsd.org/D9925

Changes:
_U  stable/11/
  stable/11/share/timedef/ca_IT.ISO8859-15.src
  stable/11/share/timedef/en_CA.UTF-8.src
  stable/11/share/timedef/fr_CA.ISO8859-15.src
  stable/11/share/timedef/fr_CA.UTF-8.src