Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Normative: Don't validate numeric timezone in ToRelativeTemporalObject
It was checking if parsing TimeZoneNumericUTCOffset from the provided timeZoneName is *not* a list of errors, i.e. it matches the production. If that's the case, it would try to validate and normalize the time zone offset, which would both fail - these steps should apply to an IANA time zone name instead, i.e. when parsing *does* produce a list of errors and the string doesn't match TimeZoneNumericUTCOffset. This mistake was introduced in 2a81fbc, the updated code now matches the validation & normalization steps in ToTemporalZonedDateTime.
- Loading branch information