Bug #2
closed
Game dates displayed in wrong timezone on public team page
Added by William Lang about 2 months ago.
Updated about 2 months ago.
Description
Problem¶
Game dates for both Recent Games and Upcoming Games are displayed in the wrong time zone on the public team page.
Expected Behavior¶
Game dates should be displayed in the user's local timezone or a consistent timezone (likely ET for NHL games).
Current Behavior¶
Dates are showing in an incorrect timezone.
Location¶
Public team page
- Assignee set to William Lang
- % Done changed from 0 to 100
Fixed timezone issue in all public-facing pages. Game dates were being parsed as UTC midnight and converted to local timezone, causing date shifts for users in certain timezones.
Solution: Parse date strings explicitly as local dates by splitting YYYY-MM-DD format and constructing Date objects with components.
Files updated:
- TeamSchedule.jsx (Recent/Upcoming games)
- Scoreboard.jsx (scoreboard dates)
- Highlights.jsx (highlight cards)
- Game.jsx (game header and title)
Commit: babc632
- Status changed from Backlog to In Progress
- Status changed from In Progress to Done
Also available in: Atom
PDF