-
Notifications
You must be signed in to change notification settings - Fork 173
Description
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.