Fix expected value for UTC-like time zone

If `timeZone` should be preserved, then it can't be the same string as
`utcDateTime.timeZoneId`.
This commit is contained in:
André Bargull 2025-03-14 10:53:26 +01:00 committed by Ms2ger
parent 7708262a21
commit 4a611cbaca

View File

@ -34,7 +34,7 @@ for (var ix = 0; ix < utcIdentifiers.length; ix++) {
var dateTime = new Temporal.ZonedDateTime(0n, timeZone);
assert.sameValue(
dateTime.timeZoneId,
utcDateTime.timeZoneId,
timeZone,
timeZone + " should be preserved and not canonicalized to UTC");
assert(dateTime.equals(utcDateTime), "Time zone " + timeZone + " should be equal to primary identifier UTC");
}