Skip to content

fix(live-events): event times crashed the server render - #213

Merged
ralyodio merged 1 commit into
masterfrom
fix/live-events-localtime
Nov 22, 2026
Merged

ralyodio merged 1 commit into
masterfrom
fix/live-events-localtime

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

LocalTime passed dateStyle/timeStyle together with timeZoneName. Intl.DateTimeFormat rejects that combination with a TypeError, so /e/<id> returned 500 after streaming most of the page. Any channel page, or /live, with an upcoming event was affected too.

The live end-to-end check after #211 caught it: 22/23 checks passed, and this was the one that failed. Both formats now use explicit fields, with a locale fallback. Added render tests (SSR, all 19 locales, bad input), so a crash at the component level now fails in CI.

🤖 Generated with Claude Code

…le + timeZoneName)

LocalTime passed dateStyle/timeStyle together with timeZoneName, which
Intl.DateTimeFormat rejects with a TypeError, so /e/<id> (and any channel
page or /live with an upcoming event) answered 500 after streaming most of
the page. Both formats now use explicit fields, with a locale fallback.

Found by the live check after #211; adds render tests (SSR, all 19
locales, bad input) so a component-level crash is caught in CI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

ThreatCrush Security Scan

63 finding(s)

HIGH/CRITICAL: 8 | MEDIUM: 29 | LOW: 26

Severity Rule Location
HIGH sh-eval-expansion .githooks/pre-commit:33
HIGH deploy-remote-exec-uploaded-script .github/workflows/deploy-livekit.yml:49
HIGH deploy-remote-exec-uploaded-script .github/workflows/deploy-turn.yml:49
HIGH js-electron-node-integration apps/desktop/src/main/window.ts:49
HIGH sh-unquoted-expansion-destructive apps/installer/scripts/install.sh:718
HIGH sh-unquoted-expansion-destructive apps/installer/scripts/install.sh:949
HIGH compose-privileged apps/livekit/dev2/docker-compose.yml:35
HIGH deploy-remote-exec-uploaded-script apps/turn/deploy-droplet.sh:103
MEDIUM gha-ssh-key-secret .github/workflows/deploy-dev2-installer-pairux-com.yml:39
MEDIUM gha-ssh-key-secret .github/workflows/deploy-dev2-pairux-com.yml:42
MEDIUM gha-ssh-key-secret .github/workflows/deploy-livekit.yml:36
MEDIUM gha-ssh-key-secret .github/workflows/deploy-turn.yml:36
MEDIUM gha-ssh-key-secret .github/workflows/sfu-diag.yml:13
MEDIUM sh-remote-script-execution apps/installer/scripts/install.sh:694
MEDIUM sh-remote-script-execution apps/installer/scripts/install.sh:841
MEDIUM sh-remote-script-execution apps/installer/scripts/install.sh:843
MEDIUM sh-remote-script-execution apps/installer/scripts/install.sh:1139
MEDIUM sh-remote-script-execution apps/installer/scripts/install.sh:1141
MEDIUM sh-remote-script-execution apps/livekit/setup-livekit-server.sh:93
MEDIUM sh-remote-script-execution apps/turn/deploy-droplet.sh:62
MEDIUM js-unescaped-html-sink apps/web/src/app/blog/[slug]/page.tsx:52
MEDIUM js-unescaped-html-sink apps/web/src/app/blog/[slug]/page.tsx:79
MEDIUM js-unescaped-html-sink apps/web/src/app/c/[handle]/page.tsx:220
MEDIUM js-open-redirect apps/web/src/app/cli/authorize/consent.tsx:68
MEDIUM js-unescaped-html-sink apps/web/src/app/l/[joinCode]/page.tsx:146
MEDIUM js-unescaped-html-sink apps/web/src/app/l/[joinCode]/page.tsx:230
MEDIUM js-unescaped-html-sink apps/web/src/app/layout.tsx:163
MEDIUM js-unescaped-html-sink apps/web/src/app/live/page.tsx:178
MEDIUM js-unescaped-html-sink apps/web/src/app/page.tsx:98
MEDIUM js-unescaped-html-sink apps/web/src/app/pricing/page.tsx:263
MEDIUM js-open-redirect apps/web/src/app/recordings/c0mpute/callback/page.tsx:17
MEDIUM js-unescaped-html-sink apps/web/src/app/u/[username]/page.tsx:285
MEDIUM js-open-redirect apps/web/src/components/billing/useCheckout.ts:81
MEDIUM js-unescaped-html-sink apps/web/src/components/universal-footer.tsx:29
MEDIUM js-open-redirect apps/web/src/hooks/useDesktopHandoff.ts:24
MEDIUM redos-nested-quantifier apps/web/src/lib/deliverable.ts:11
MEDIUM sql-template-interpolation packages/ai-core/src/prompts.ts:36
LOW secret-generic-credential apps/desktop/src/main/agent-cli/commands.test.ts:138
LOW secret-generic-credential apps/desktop/src/main/agent-cli/commands.test.ts:139
LOW secret-generic-credential apps/desktop/src/main/agent-cli/commands.test.ts:340
LOW secret-generic-credential apps/desktop/src/main/agent-cli/commands.test.ts:341
LOW secret-generic-credential apps/desktop/src/main/agent-cli/commands.test.ts:371
LOW secret-generic-credential apps/desktop/src/main/agent-cli/commands.test.ts:372
LOW secret-generic-credential apps/desktop/src/main/agent-cli/commands.test.ts:383
LOW secret-generic-credential apps/desktop/src/main/agent-cli/commands.test.ts:397
LOW secret-generic-credential apps/desktop/src/main/agent-cli/commands.test.ts:398
LOW secret-generic-credential apps/desktop/src/main/agent-cli/commands.test.ts:405
LOW secret-generic-credential apps/desktop/src/main/agent-cli/commands.test.ts:415
LOW secret-generic-credential apps/desktop/src/main/agent-cli/commands.test.ts:416
LOW secret-generic-credential apps/desktop/src/main/agent-cli/commands.test.ts:453

…and 13 more. Full results in the Security tab.

Snippets are redacted; ThreatCrush never prints matched credential material.

@ralyodio
ralyodio merged commit 16daf77 into master Nov 22, 2026
9 checks passed
@ralyodio
ralyodio deleted the fix/live-events-localtime branch November 22, 2026 21:39
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