Bug: date on contract signing page doesn't work — SSR/timezone mismatch #9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Bug
Lineage
plan-wkq→ Phase 14 (Billing Tiers & Contracts) — discovered during E2E validationRepo
forgejo_admin/westside-contractsWhat Broke
The date shown on the contract signing page is not functioning correctly. The date is computed in
+page.svelteline 25 as:This runs during SSR on the server (UTC timezone in the k8s pod). SvelteKit adapter-node renders on the server first, then hydrates on the client. The
constis not reactive — Svelte reuses the SSR-computed value during hydration and does NOT re-compute it with the client's local timezone.This means:
contract_signed_atin the DB is correct (server UTC timestamp), but the DATE DISPLAYED TO THE USER may be wrongRepro Steps
Expected Behavior
Date field should always show the user's local date, not the server's UTC date.
Environment
56d81b7(current main)Acceptance Criteria
Related
project-westside-basketball— project this affectsforgejo_admin/westside-contracts #7— E2E validation (this blocks sign-off)Scope Review: READY
Review note:
review-331-2026-03-24Scope is solid — file targets verified, acceptance criteria testable, no blast radius in sibling services. Fix already implemented in PR #10 (branch
fix/9-contract-date-timezone). Minor line number off-by-one (issue says line 25, actual is line 24) — cosmetic, does not affect agent execution.