From 4a611cbaca5aac6930b0858e7fa6eccfdf08b9fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bargull?= Date: Fri, 14 Mar 2025 10:53:26 +0100 Subject: [PATCH] Fix expected value for UTC-like time zone If `timeZone` should be preserved, then it can't be the same string as `utcDateTime.timeZoneId`. --- .../ZonedDateTime/prototype/equals/canonicalize-utc-timezone.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/intl402/Temporal/ZonedDateTime/prototype/equals/canonicalize-utc-timezone.js b/test/intl402/Temporal/ZonedDateTime/prototype/equals/canonicalize-utc-timezone.js index d34ef74581..4c0bb20285 100644 --- a/test/intl402/Temporal/ZonedDateTime/prototype/equals/canonicalize-utc-timezone.js +++ b/test/intl402/Temporal/ZonedDateTime/prototype/equals/canonicalize-utc-timezone.js @@ -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"); }