Fix two leftover uses of Temporal.ZonedDateTime.prototype.timeZone

This commit is contained in:
Linus Groh 2025-07-05 16:16:59 +01:00 committed by Ms2ger
parent 68a817d713
commit dc40377cb4
2 changed files with 2 additions and 2 deletions

View File

@ -369,7 +369,7 @@ var TemporalHelpers = {
assert(expected instanceof Temporal.ZonedDateTime, `${prefix}expected value should be a Temporal.ZonedDateTime`); assert(expected instanceof Temporal.ZonedDateTime, `${prefix}expected value should be a Temporal.ZonedDateTime`);
assert(actual instanceof Temporal.ZonedDateTime, `${prefix}instanceof`); assert(actual instanceof Temporal.ZonedDateTime, `${prefix}instanceof`);
assert(actual.equals(expected), `${prefix}equals method`); assert(actual.equals(expected), `${prefix}equals method`);
assert.sameValue(actual.timeZone, expected.timeZone, `${prefix}time zone same value:`); assert.sameValue(actual.timeZoneId, expected.timeZoneId, `${prefix}time zone same value:`);
assert.sameValue( assert.sameValue(
actual.calendarId, actual.calendarId,
expected.calendarId, expected.calendarId,

View File

@ -11,7 +11,7 @@ const orig = new Temporal.ZonedDateTime(946684800_000_000_010n, "UTC");
const result = Temporal.ZonedDateTime.from(orig); const result = Temporal.ZonedDateTime.from(orig);
assert.sameValue(result.epochNanoseconds, 946684800_000_000_010n, "ZonedDateTime is copied"); assert.sameValue(result.epochNanoseconds, 946684800_000_000_010n, "ZonedDateTime is copied");
assert.sameValue(result.timeZone, orig.timeZone, "time zone is the same"); assert.sameValue(result.timeZoneId, orig.timeZoneId, "time zone is the same");
assert.sameValue(result.calendarId, orig.calendarId, "calendar is the same"); assert.sameValue(result.calendarId, orig.calendarId, "calendar is the same");
assert.notSameValue( assert.notSameValue(