[Unicode]   Common Locale Data Repository : Bug Tracking Home | Site Map | Search

CLDR Ticket #10258(closed tools: fixed)

Opened 13 months ago

Last modified 7 months ago

Remove exemplar cities for Etc/GMT±x in JSON files

Reported by: Christian Schmidt <c960657-unicode.org@…> Owned by: emmons
Component: json Data Locale:
Phase: spec-beta Review: srl
Weeks: Data Xpath:


The generated JSON files contains exemplar city names for the GMT-style timezones, Etc/GMT, Etc/GMT+1, etc. ([example]https://github.com/unicode-cldr/cldr-dates-modern/blob/master/main/en/timeZoneNames.json#L1323)).

Strings such as GMT+11 may very well be the name of the timezone, but they are not city names, so they should not be listed in the exemplarCity field.

The fact that these timezones are special is touched briefly in spec in the description of the VVVV format pattern:
“Note: Fallback is only necessary with a GMT-style Time Zone ID, like Etc/GMT-830”
However, this is not reflected in the JSON files, so implementors need special code to check for a “Etc/GMT” prefix.

I suggest removing these pseudo-cities from the JSON files.

The names do not convey any information apart from what is already included in the localized GMT format, so I don't think there is any reason to include their names elsewhere, e.g. in a short or long field. Also, note that the Etc timezones use the opposite sign of what is used in most places in CLDR, e.g. Etc/GMT+2 corresponds to GMT-02:00, so using the tzid in any form might be confusing to end users.

The attached patch is one way to fix this problem. This is the first time I am changing the CLDR Java code, so I have no idea if this is the best way to address the issue.


etc-gmt.patch (1.5 KB) - added by Christian Schmidt <c960657-unicode.org@…> 13 months ago.

Change History

Changed 13 months ago by Christian Schmidt <c960657-unicode.org@…>


comment:1 Changed 11 months ago by emmons

  • Status changed from new to accepted
  • Component changed from timezone to json
  • Priority changed from assess to medium
  • Phase changed from dsub to rc
  • Milestone changed from UNSCH to 32
  • Owner changed from anybody to emmons

comment:2 Changed 8 months ago by emmons

  • Phase changed from rc to spec-beta

comment:3 Changed 8 months ago by emmons

  • Status changed from accepted to reviewing
  • Review set to srl

comment:4 Changed 7 months ago by srl

  • Status changed from reviewing to closed
  • Resolution set to fixed

Add a comment

Modify Ticket

as closed
Next status will be 'new'
Next status will be 'closed'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.