callumalpass_tasknotes/issue-analysis
callumalpass 0d8613b193
fix: mini calendar off-by-one date display in negative UTC timezones (#822) (#847)
* 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
2025-10-06 21:35:38 +11:00
..
issue-440.md analysis: AI analysis for issue #440 2025-10-05 12:26:14 +11:00
issue-810.md analysis: AI analysis for issue #810 2025-10-06 21:05:29 +11:00
issue-822.md fix: mini calendar off-by-one date display in negative UTC timezones (#822) (#847) 2025-10-06 21:35:38 +11:00
issue-826.md fix: task card widget not appearing on Obsidian startup (#826) (#846) 2025-10-06 21:24:04 +11:00
issue-827.md analysis: AI analysis for issue #827 2025-10-05 10:33:12 +11:00
issue-829.md analysis: AI analysis for issue #829 2025-10-05 14:43:34 +11:00