Skip to content

fix(explore): make the parking clamp test independent of the runner timezone - #486

Merged
camreeves merged 1 commit into
developfrom
fix/explore-parking-tz-test
Aug 5, 2026
Merged

fix(explore): make the parking clamp test independent of the runner timezone#486
camreeves merged 1 commit into
developfrom
fix/explore-parking-tz-test

Conversation

@camreeves

Copy link
Copy Markdown
Contributor

Follow-up to #485. After fixing the three timezone-pinned tests there, I swept every app and library under TZ=UTC and TZ=Pacific/Honolulu to find any others. This was the only one left.

Same fault: the expectation is a fixed +10:00 offset, but the clamp applies bookable_hours via Date#setHours, which is machine-local. On a UTC runner the expected period_start was exactly ten hours adrift, so nx test explore failed for anyone outside eastern Australia — and in CI whenever a change touched this library.

AssertionError: expected 1783584000 to be 1783548000

That difference is 36000 seconds. Ten hours.

Verification

explore green under UTC, Australia/Sydney, America/New_York, Pacific/Honolulu and Asia/Kolkata.

The rest of the sweep came back clean — apps (app-loader, assistant-panel, booking-panel, caterer-ui, concierge, control, enrolment, map-kiosk, outlook-addin, public, redirect, signage, signage-manager, stagehand, survey, timetable, visitor-kiosk, workplace) and libraries (assets, bookings, catering, common, components, events, form-fields, mocks, payments, users) all pass with no unhandled errors.

🤖 Generated with Claude Code

…imezone

Same fault as the three fixed in #485: the expectation was written as a
fixed `+10:00` offset while the clamp applies `bookable_hours` with
`Date#setHours`, which is machine-local. On a UTC runner the expected
period start came out exactly ten hours adrift, so `nx test explore`
failed for anyone outside eastern Australia — including CI, whenever a
change touched this library.

Input and expectations are now all built from local components.

Found by sweeping every app and library under UTC and Pacific/Honolulu
after #485; this was the only remaining case. Verified green under UTC,
Australia/Sydney, America/New_York, Pacific/Honolulu and Asia/Kolkata.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Aug 5, 2026

Copy link
Copy Markdown

Deployment failed with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/placeos?upgradeToPro=build-rate-limit

@camreeves
camreeves merged commit 6dcc550 into develop Aug 5, 2026
33 of 34 checks passed
@camreeves
camreeves deleted the fix/explore-parking-tz-test branch August 5, 2026 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant