Day/Week view events misaligned due to buckets keyed numerically instead of by time string

Created on 5 September 2025, about 8 hours ago

Problem/Motivation

In the Calendar module’s day/week views, some events do not align correctly in the agenda grid. On inspection, the $inner buckets for events are being keyed with numeric indices (0,1,2…) instead of normalized time strings (HH:MM:SS). Because the theming layer expects items to be keyed by bucket floors like 12:00:00 or 12:15:00, these numeric keys cause events to drop into the wrong place or appear misaligned.

Proposed resolution

Normalize bucket keys when building $inner and $singleday_buckets:
• Use bucketFloor($time) to guarantee HH:MM:SS keys.
• Ensure all events (even when rendered without overlap) are placed in arrays keyed by their bucket floor.
• This change aligns the render array with what the templates expect and fixes the misalignment in day and week views.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024