Internationalization: normalization of IANA time zones for UTC

Norbert Lindenberg ecmascript at lindenbergsoftware.com
Fri Mar 1 12:54:27 PST 2013


On Mar 1, 2013, at 7:20 , Eric Albright wrote:

> 2) These names are canonicalized to the corresponding Zone name in the casing used in the IANA Time Zone Database. Etc/GMT and Etc/UTC are canonicalized to UTC. (The subtle differences between GMT and UTC probably don't matter to users of this API.)
> 
> We'll need some clarity here as to what it means to canonicalize to UTC. Presumably if you request UTC, Etc/GMT or Etc/UTC it is resolved as UTC. But when you include the abbreviation in a time format which do you get, GMT or UTC? It seems surprising to me that it would be GMT (but then, that's what you would expect from v1 with only Etc/GMT aliasing to UTC). I would have naively also expected a full name of Universal Coordinated Time.

That depends on which localized string the implementation uses.

> We also should define the behavior for link names (do they resolve to the linked zone or resolve to themselves).

The spec draft is clearer on this than my email:
http://norbertlindenberg.com/ecmascript/intl.html#sec-6.4.2

Norbert


More information about the es-discuss mailing list