Multi-day event's end date is not inclusive

Created on 26 September 2024, about 2 months ago

Problem/Motivation

When an event spans a date range of multiple days, it is displayed on the calendar as spanning from the start date to the day before the end date.

Example: If the event appears in the event source data as `{"title":"Conference","start":"2024-09-12","end":"2024-09-16"}, then its box on the calendar covers 2024-09-12 through 2024-09-15.

Proposed resolution

I'm not sure if this is a bug or the intended behavior of this module. The module simply goes with the behavior of Fullcalendar itself, so it may not be considered a bug. On the other hand, it is a bit surprising and I didn't find it documented anywhere.

For reference: If I understand correctly, the Fullcalendar View module (which I was using before I switched to this module) makes the end date inclusive by adding 1 day to it.

Workaround

I made the end date inclusive by adding 1 day to it in the Views field's Rewrite Results: {{ field_event_date_1__end_value|date_modify("+1 day")|date("Y-m-d") }}

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jlstrecker Athens, Ohio, USA

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