brackt/scripts
Claude 746bbcf531 Migrate existing group-match times and localize day headers
Add a one-off data migration (scripts/fix-group-match-times-utc.mjs) that
shifts group_stage_matches.scheduled_at +7h, converting the pre-fix
local-wall-time-as-UTC (all entered in PDT) into true UTC. Scoped to
group-stage matches only; playoff games were already stored correctly.
Defaults to a dry-run preview and only writes with --apply.
Run: npx dotenv -- node scripts/fix-group-match-times-utc.mjs [--apply]

Fix GroupStageStandings day-header grouping/labels, which keyed and
formatted by UTC date. With times now stored as true UTC, an evening PDT
match rolled into the next UTC day and appeared under the wrong header.
Group and label by the viewer's local date after hydration, keeping the
UTC representation on SSR/first paint for deterministic markup.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0125nZohVD2Cpoq3Q9f4jeds
2026-06-18 02:19:31 +00:00
..
build-server.mjs refactor: migrate server code from JavaScript to TypeScript with build pipeline 2025-10-18 22:16:04 -07:00
capture-baseline.ts Fix capture-baseline.ts: postgres-js returns rows directly 2026-05-01 06:07:14 +00:00
fix-group-match-times-utc.mjs Migrate existing group-match times and localize day headers 2026-06-18 02:19:31 +00:00
generate-sitemap.mjs Add robots.txt and sitemap.xml.gz for SEO 2026-05-24 22:05:37 -07:00
migrate-clerk-passwords.mjs Migrate authentication from Clerk to BetterAuth (#324) 2026-04-24 22:00:49 -07:00
migrate.mjs Add email verification for email/password signups (#400) 2026-05-09 23:58:45 -07:00
sync-prod-db.sh Add branded dark-themed HTML email template (#402) 2026-05-10 11:18:57 -07:00