TemporalTimeZoneIdentifier and TimeZoneIANAName exclude some valid IANA time zone names #1993
Labels
needs plenary input
Needs to be presented to the committee and feedback incorporated
spec-text
Specification text involved
Milestone
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.
The text was updated successfully, but these errors were encountered: