Skip to content

Fix all-day events missing from date-grouped output - #22

Merged
itspriddle merged 1 commit into
mainfrom
bugfix/full-day-events
Sep 25, 2026
Merged

itspriddle merged 1 commit into
mainfrom
bugfix/full-day-events

Conversation

@itspriddle

@itspriddle itspriddle commented Sep 25, 2026 •

Copy link
Copy Markdown
Owner

All-day events were missing from output whenever results were grouped by date, which is the default for multi-day ranges (e.g. --from today --to today+60).

DateGrouper assumed EventKit ends all-day events at midnight of the next day and subtracted a day. EventKit actually ends them at 23:59:59 of the last day, so single-day all-day events were dropped entirely and multi-day ones lost their final day.

Days are now bucketed by endDate - 1s (never before startDate), which handles both end conventions and timed events ending exactly at midnight. Added tests using EventKit's real end-date shape.

Relates to #20

EventKit ends all-day events at 23:59:59 of the last day, not midnight
of the next day, so single-day all-day events were dropped entirely and
multi-day ones lost their final day.
@itspriddle
itspriddle merged commit f0c6da1 into main Sep 25, 2026
1 check passed
@itspriddle
itspriddle deleted the bugfix/full-day-events branch September 25, 2026 15:18
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