mirror of
https://github.com/tc39/test262.git
synced 2025-07-23 14:04:51 +02:00
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:
parent
7708262a21
commit
4a611cbaca
@ -34,7 +34,7 @@ for (var ix = 0; ix < utcIdentifiers.length; ix++) {
|
|||||||
var dateTime = new Temporal.ZonedDateTime(0n, timeZone);
|
var dateTime = new Temporal.ZonedDateTime(0n, timeZone);
|
||||||
assert.sameValue(
|
assert.sameValue(
|
||||||
dateTime.timeZoneId,
|
dateTime.timeZoneId,
|
||||||
utcDateTime.timeZoneId,
|
timeZone,
|
||||||
timeZone + " should be preserved and not canonicalized to UTC");
|
timeZone + " should be preserved and not canonicalized to UTC");
|
||||||
assert(dateTime.equals(utcDateTime), "Time zone " + timeZone + " should be equal to primary identifier UTC");
|
assert(dateTime.equals(utcDateTime), "Time zone " + timeZone + " should be equal to primary identifier UTC");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user