unicode-org / icu4x

Solving i18n for client-side and resource-constrained environments.
https://icu4x.unicode.org
Other
1.37k stars 176 forks source link

UTC vs GMT #5497

Closed robertbastian closed 1 month ago

robertbastian commented 1 month ago

UTC has been widely embraced by most countries and is the effective successor to Greenwich Mean Time (GMT) in everyday usage and common applications.

Yet ICU4X uses GMT, both on APIs (icu::timezone::GmtOffset) as well as in output ("GMT-05:00"). The latter is dictated by UTS 35, which seems to have historically used GMT, but currently uses GMT and UTC interchangeably. Unfortunately CLDR data has fields like gmtFormat (instead of a more neutral offsetFormat), which naturally result in values like GMT{0} instead of the more appropriate UTC{0}.

I do want to address this on the CLDR level, but this issue should discuss updating IUC4X APIs to use the more appropriate UTC. IXDTF and ISO 8601 also use "UTC offset" terminology, which already appears in ICU4X as well (e.g. through the beautifully named GmtOffset::try_from_utc_offset_record).

My concrete proposal for ICU4X is:

robertbastian commented 1 month ago

More from Wikipedia:

On 1 January 1972, GMT as the international civil time standard was superseded by Coordinated Universal Time (UTC), maintained by an ensemble of atomic clocks around the world.

The term "GMT" is also used as one of the names for the time zone UTC+00:00

English speakers often use GMT as a synonym for UTC.

The term "GMT" should thus not be used for purposes that require precision.

sffc commented 1 month ago

Conclusion: move forward with the suggestions in the OP

LGTM: @sffc @robertbastian @Manishearth @nekevss