Skip to content

Commit 4a611cb

Browse files
anbaMs2ger
authored andcommitted
Fix expected value for UTC-like time zone
If `timeZone` should be preserved, then it can't be the same string as `utcDateTime.timeZoneId`.
1 parent 7708262 commit 4a611cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/intl402/Temporal/ZonedDateTime/prototype/equals/canonicalize-utc-timezone.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ for (var ix = 0; ix < utcIdentifiers.length; ix++) {
3434
var dateTime = new Temporal.ZonedDateTime(0n, timeZone);
3535
assert.sameValue(
3636
dateTime.timeZoneId,
37-
utcDateTime.timeZoneId,
37+
timeZone,
3838
timeZone + " should be preserved and not canonicalized to UTC");
3939
assert(dateTime.equals(utcDateTime), "Time zone " + timeZone + " should be equal to primary identifier UTC");
4040
}

0 commit comments

Comments
 (0)