From 07ea5a63617380738beaadb4dd56b430f26dcac5 Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Fri, 20 Mar 2026 15:52:54 -0700 Subject: [PATCH] [Temporal] Clean up tests using non-UTC named time zones Change *-large-subseconds test to use UTC, and move round-dst-boundaries.js into intl402 --- .../ZonedDateTime/prototype/add/add-large-subseconds.js | 2 +- .../prototype/subtract/subtract-large-subseconds.js | 2 +- .../ZonedDateTime/prototype/round/round-dst-boundaries.js | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename test/{built-ins => intl402}/Temporal/ZonedDateTime/prototype/round/round-dst-boundaries.js (100%) diff --git a/test/built-ins/Temporal/ZonedDateTime/prototype/add/add-large-subseconds.js b/test/built-ins/Temporal/ZonedDateTime/prototype/add/add-large-subseconds.js index 5f9040990cf..4169cb95bf6 100644 --- a/test/built-ins/Temporal/ZonedDateTime/prototype/add/add-large-subseconds.js +++ b/test/built-ins/Temporal/ZonedDateTime/prototype/add/add-large-subseconds.js @@ -8,7 +8,7 @@ features: [Temporal] ---*/ // const pdt1 = new Temporal.PlainDateTime(2020, 2, 29, 0, 57, 27, 747, 612, 578); -const zdt1 = new Temporal.ZonedDateTime(1582966647747612578n, "America/Los_Angeles"); +const zdt1 = new Temporal.ZonedDateTime(1582966647747612578n, "UTC"); assert.sameValue(zdt1.add(Temporal.Duration.from({nanoseconds: Number.MAX_SAFE_INTEGER})).epochNanoseconds, 1591973847002353569n); diff --git a/test/built-ins/Temporal/ZonedDateTime/prototype/subtract/subtract-large-subseconds.js b/test/built-ins/Temporal/ZonedDateTime/prototype/subtract/subtract-large-subseconds.js index 96228605c40..8d4306146bb 100644 --- a/test/built-ins/Temporal/ZonedDateTime/prototype/subtract/subtract-large-subseconds.js +++ b/test/built-ins/Temporal/ZonedDateTime/prototype/subtract/subtract-large-subseconds.js @@ -8,7 +8,7 @@ features: [Temporal] ---*/ // const pdt1 = new Temporal.PlainDateTime(2020, 2, 29, 0, 57, 27, 747, 612, 578); -const zdt1 = new Temporal.ZonedDateTime(1582966647747612578n, "America/Los_Angeles"); +const zdt1 = new Temporal.ZonedDateTime(1582966647747612578n, "UTC"); assert.sameValue(zdt1.subtract(Temporal.Duration.from({nanoseconds: Number.MAX_SAFE_INTEGER})).epochNanoseconds, 1573959448492871587n); diff --git a/test/built-ins/Temporal/ZonedDateTime/prototype/round/round-dst-boundaries.js b/test/intl402/Temporal/ZonedDateTime/prototype/round/round-dst-boundaries.js similarity index 100% rename from test/built-ins/Temporal/ZonedDateTime/prototype/round/round-dst-boundaries.js rename to test/intl402/Temporal/ZonedDateTime/prototype/round/round-dst-boundaries.js