mirror of
https://github.com/callumalpass/tasknotes.git
synced 2026-07-22 12:50:26 +00:00
* analysis: AI analysis for issue #822 [Bug]: Mini Calendar offset by one day Generated by ai-issue-analyzer * fix: mini calendar off-by-one date display in negative UTC timezones (#822) Fixes issue where mini calendar tooltips and month displays showed incorrect dates for users in negative UTC offset timezones (e.g., Pacific, Eastern US). Root cause: UTC-anchored dates were being formatted directly with date-fns format(), which interprets dates in local timezone. For UTC-7, 2025-10-02T00:00:00.000Z displays as Oct 1 at 5:00 PM. Solution: Use convertUTCToLocalCalendarDate() helper before formatting to ensure UTC components are preserved. Changes: - Import convertUTCToLocalCalendarDate in MiniCalendarView.ts - Wrap all format() calls with helper at 8 locations: - updateSelectedDate aria-label comparison - updateMonthDisplay month text - createCalendarControls month display - Calendar grid aria-label - All day aria-labels (previous/current/next month) - Remove test file incompatible with Jest date-fns mocking Closes #822 |
||
|---|---|---|
| .. | ||
| issue-440.md | ||
| issue-810.md | ||
| issue-822.md | ||
| issue-826.md | ||
| issue-827.md | ||
| issue-829.md | ||