Files
msd-core/tests/init.test.cjs
BeeHiggs 9a305f3b6b fix(#3367): expectedQuickId derives UTC values to match the TZ-pinned subprocess (#3398)
expectedQuickId() in tests/init.test.cjs computed its expected quick_id
using local-time Date getters (getFullYear/getMonth/getDate/getHours/
getMinutes/getSeconds) in the test-runner process, while the CLI
subprocess under test is pinned to TZ=UTC. The two sides only agreed
when the test-runner's own ambient TZ happened to already be UTC.

Swap the six getters to their getUTC* equivalents so the helper is
timezone-invariant. No change to src/init.cts (the CLI side already
relies on its own UTC-pinned subprocess env and is correct) and no
change to the pinned clock instants or expected quick_id strings
asserted by the three affected tests.

Introduced by 80734a969 (#3332).

Co-authored-by: Tom Boucher <trekkie@nomorestars.com>
2026-08-13 18:22:48 -04:00

192 KiB