Skip to content

Commit

Permalink
Polyfill: Fix IsOffsetTimeZoneIdentifier to not accept sub-minute off…
Browse files Browse the repository at this point in the history
…sets

This did not actually lead to any buggy behaviour, as far as I could tell.
But it should match the spec text, which parses
UTCOffset[~SubMinutePrecision] here.
  • Loading branch information
ptomato authored and Ms2ger committed Oct 8, 2024
1 parent cb2e0ff commit 029d974
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion polyfill/lib/ecmascript.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2143,7 +2143,7 @@ export function TemporalZonedDateTimeToString(
}

export function IsOffsetTimeZoneIdentifier(string) {
return Call(RegExpPrototypeTest, OFFSET, [string]);
return Call(RegExpPrototypeTest, OFFSET_IDENTIFIER, [string]);
}

export function ParseDateTimeUTCOffset(string) {
Expand Down

0 comments on commit 029d974

Please sign in to comment.