Temporal calculations use the host time zone for UTCDate
The new Temporal implementation uses the host time zone for UTCDate and UTCDateMini, rather than UTC. This can change the ISO week-year.
On main 717ce0a807ea4c6b540d015b5c408723175b2838, with Node 26.10.0 and TZ=America/Los_Angeles:
import { UTCDate } from "@date-fns/utc";
import { endOfISOWeekYear } from "./pkgs/core/src/endOfISOWeekYear/index.ts";
import { tpyEndOfISOWeekYear } from "./pkgs/core/src/endOfISOWeekYear/index.tp.ts";
const date = new UTCDate("2024-12-30T00:00:00Z");
endOfISOWeekYear(date).toISOString();
// 2025-12-28T23:59:59.999Z
tpyEndOfISOWeekYear(date).toISOString();
// 2024-12-30T07:59:59.999ZThe same input fails with UTCDateMini and the { in: utc } context. startOfISOWeekYear and endOfDecade also disagree with their existing implementations. A plain Date control still agrees.
getDateTimeZone recognizes the timeZone property used by TZDate, but neither UTC class exposes it, so the adapter falls back to Temporal.Now.timeZoneId(). An inherited timeZone getter returning "UTC" on UTCDateMini would also survive toDate cloning and cover both UTC classes.
This concerns the new Temporal source, which the current package build excludes; it is not a reproduction against the published Date-based implementation.
Source: date-fns/date-fns