You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(ui): overnight class times render as two full dates #325
A class that ends after midnight shows its time as two full dates — "10/27/2026, 9:30 PM – 10/28/2026, 12:30 AM" — instead of "9:30 PM – 12:30 AM", on the class page, list cards and the pin popover.
Approach
formatTimeRange (src/lib/time.ts:71-85) formats with Intl.DateTimeFormat#formatRange using only hour/minute options. When the two instants fall on different calendar days, formatRange adds the dates. Format the start and end separately when they fall on different days and join them with the range separator (or format the end against the start's day), so the line stays a time range. A fix exists on branch ux/147-a-one-sheet (found while prototyping the add-a-class flow).
Acceptance criteria
A 21:30–00:30 session in Europe/London renders as "9:30 – 12:30 AM" style time-only text in en, with no dates.
Same-day ranges render exactly as today.
Verification checklist
pnpm test:run src/lib/time.test.ts with a new case for an overnight range.
node -e check: formatTimeRange for 2026-10-27 21:30 → 2026-10-28 00:30 Europe/London contains no "/".
Notes
Found while building the add-a-class prototypes (2026-10-25); affects any published class ending after midnight.
Activity
Ardnived commentedon Oct 25, 2026
@sydevs-bot implement
sydevs-bot commentedon Oct 25, 2026
🤖 no session running
recent dispatches
Written by the sydevs dispatcher. Sessions never edit this comment.
Merge origin/main into claude/fix-320-sticky-register-bar