Skip to content

TemporalTimeZoneIdentifier and TimeZoneIANAName exclude some valid IANA time zone names #1993

@gibson042

Description

@gibson042

The IANA time zone database includes zones "Etc/GMT+0" through "Etc/GMT+12", but these are not matched by the TimeZoneIANAName production (and therefore not by the TemporalTimeZoneIdentifier production either) because "+" is not matched by TZChar (while the sibling zones "Etc/GMT-0" through "Etc/GMT-14" are matched because "-" is matched by TZChar). TimeZoneBracketedName specifically expands to Etc/GMT ASCIISign Hour, but even that doesn't really work because Hour only matches two-digit sequences 00 through 23 (resulting in incorrect acceptance of "Etc/GMT+00" through "Etc/GMT+09" and incorrect rejection of "Etc/GMT+0" through "Etc/GMT+9").

I think the special TimeZoneBracketedName expansion should be moved to TimeZoneIANAName and fixed to something like Etc/GMT ASCIISign Hour[+Unpadded] or Etc/GMT ASCIISign UnpaddedHour.

Metadata

Metadata

Assignees

Labels

needs plenary inputNeeds to be presented to the committee and feedback incorporatedspec-textSpecification text involved

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions