Skip to content

Fix all-day events showing on wrong day due to timezone handling#20

Open
bradwindy wants to merge 1 commit intoOmar-V2:mainfrom
bradwindy:main
Open

Fix all-day events showing on wrong day due to timezone handling#20
bradwindy wants to merge 1 commit intoOmar-V2:mainfrom
bradwindy:main

Conversation

@bradwindy
Copy link
Copy Markdown

Summary

  • All-day events were displaying on the previous day because UTC timestamps were not being converted to local time
  • For example, a December 21st event stored as 2025-12-20 11:00:00 UTC (midnight NZDT) was showing as December 20th
  • The fix converts all-day event timestamps to local timezone and normalizes them to midnight (start) and 23:59:59 (end) on the correct local date
  • Regular timed events are unchanged

Test plan

  • Added timezone-agnostic unit tests that verify correct behavior regardless of system timezone
  • Manually tested with real calendar events in NZDT (UTC+13)
  • Verified no regressions in existing tests (16 passed, 1 pre-existing failure unrelated to this change)

🤖 Generated with Claude Code

All-day events were displaying on the previous day because UTC
timestamps were not being converted to local time. For example,
a December 21st event stored as 2025-12-20 11:00:00 UTC (which is
midnight NZDT) was showing as December 20th.

The fix converts all-day event timestamps to local timezone and
normalizes them to midnight (start) and 23:59:59 (end) on the
correct local date. Regular timed events are unchanged.

Includes timezone-agnostic unit tests that verify correct behavior
regardless of the system's local timezone.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant