Skip to content

Fix/multi day event rendering#367

Open
John-Swindell wants to merge 1 commit intomhss1:devfrom
John-Swindell:fix/multi-day-event-rendering
Open

Fix/multi day event rendering#367
John-Swindell wants to merge 1 commit intomhss1:devfrom
John-Swindell:fix/multi-day-event-rendering

Conversation

@John-Swindell
Copy link
Copy Markdown

@John-Swindell John-Swindell commented Apr 20, 2026

Description

Please include a summary of the changes and the related issue.

Render multi-day calendar events on every day they span

Month view grouped events only by the start day index, so an event running Mon through Thu appeared only on Monday. The grouping now iterates from the event start date through its end date and adds the event to each covered day, using UTC for all-day events (stored as midnight UTC by CalendarContract) to avoid timezone skew that made all-day events appear a day early for users west of UTC.

List view had the same flaw: groupBy keyed each event by its start day only. loadListEvents now expands each event into one entry per day it covers, sorting continuation days as midnight so the event floats to the top per the expected behavior.

Fixes #69, #116, #358

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style (formatting, new lines, etc.)
  • Refactoring (no functional changes, renaming)
  • Other (describe the changes):

Checklist:

  • The PR is to the dev branch
  • My code follows the style and architecture of the project
  • I have performed a self-review of my code
  • I have tested the app on an actual Android device and everything works as expected
  • My changes generate no new warnings or errors
  • New and existing tests pass locally with my changes
  • I have commented my code, particularly in hard-to-understand areas (no, but changes is very simple)

@John-Swindell John-Swindell force-pushed the fix/multi-day-event-rendering branch from 5c6e095 to 09b02fc Compare April 20, 2026 12:46
Updates month and list view grouping logic to iterate from the event start date to the end date, adding the event to every covered day. Uses UTC for all-day events to prevent timezone skew. Fixes mhss1#69, mhss1#116, mhss1#358.
@John-Swindell John-Swindell force-pushed the fix/multi-day-event-rendering branch from 09b02fc to 67b217a Compare April 20, 2026 12:51
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