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
fix: parse holiday date strings as local time to prevent timezone shift
When holiday dates are provided as ISO date strings (YYYY-MM-DD), the
previous implementation used `new Date(string)` which parses them as UTC
midnight. This caused holidays to display on the wrong day in timezones
west of UTC.
For example, "2025-01-01" would be parsed as 2025-01-01T00:00:00.000Z,
which when formatted in PST (UTC-8) becomes December 31st, 2024.
This fix introduces `parseHolidayDateString()` which parses ISO date
strings by extracting year/month/day components and creating a Date
object in local time, ensuring holidays display on the intended date
regardless of timezone.
Fixes#6105
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments