# Agenda (iCal) widget shows moved recurring occurrences on their original date when the interval is short (e.g. "1 day")

**URL:** <https://community.xibo.org.uk/t/agenda-ical-widget-shows-moved-recurring-occurrences-on-their-original-date-when-the-interval-is-short-e-g-1-day/38532>\
**Category:** CMS Features and Functionality\
**Created:** [November 4, 2026, 9:02pm UTC](https://community.xibo.org.uk/t/agenda-ical-widget-shows-moved-recurring-occurrences-on-their-original-date-when-the-interval-is-short-e-g-1-day/38532 "2026-11-04T21:02:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Siebren](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/s/ea666f/32.png) [@Siebren](https://community.xibo.org.uk/u/Siebren)\
**Post date:** [November 4, 2026, 9:02pm UTC](https://community.xibo.org.uk/t/agenda-ical-widget-shows-moved-recurring-occurrences-on-their-original-date-when-the-interval-is-short-e-g-1-day/38532/1 "2026-11-04T21:02:28Z")

</div>

Environment

- Xibo CMS 4.5.5 (Docker image [Package xibo-cms · GitHub](http://ghcr.io/xibosignage/xibo-cms:release-4.5.5))
- Bundled johngrogg/ics-parser v3.5.1
- Feed: Microsoft 365 / Outlook published calendar (.ics)
- Players: Xibo for Linux 4.0.13, CMS layout preview (both affected)

Agenda widget settings

- Events from the start of the: Day
- For an interval of: 1 day
- Exclude past events: on
- Use event timezone / Use calendar timezone / Windows format calendar: off

Steps to reproduce

1. In Outlook, create a weekly recurring event (for example every other Wednesday at 19:30).
2. Move one occurrence to a date more than 2 days away, for example from Wed 4 Nov to Wed 11 Nov. Outlook publishes this as an extra VEVENT with the same UID, RECURRENCE-ID;TZID=…:20261104T193000 and DTSTART;TZID=…:20261111T193000.
3. Use the feed in an Agenda widget with interval 1 day, and view it on 4 Nov.

Expected: the event does not appear on 4 Nov, because that occurrence was moved.  
Actual: the event appears on 4 Nov at 19:30, its original date.

Root cause  
lib/Widget/IcsProvider.php sets a narrow pre-filter window:  
$iCalConfig[‘filterDaysBefore’] = (int) $rangeStart-\>diffInDays(Carbon::now(), false) + 2;  
$iCalConfig[‘filterDaysAfter’] = (int) $rangeEnd-\>diffInDays(Carbon::now(), true) + 2;  
In ics-parser 3.5.1, initLines() calls removeLastEventIfOutsideWindowAndNonRecurring() on every END:VEVENT. A RECURRENCE-ID override has no RRULE, so it is treated as non-recurring. If its new DTSTART is outside the window, it is removed during parsing. That happens before processEvents() records it in alteredRecurrenceInstances. When processRecurrences() then expands the master RRULE, it doesn’t know about the override and generates the original occurrence again.

The same thing happens in the other direction: an occurrence moved to an earlier date shows up again on its original date once the moved copy falls more than 2 days before the window.

Upstream status  
ics-parser has fixed this on master. The check is now !isset($lastEvent[‘RECURRENCE-ID’]) && (!isset($lastEvent[‘RRULE’]) …). The fix is not in tagged release v3.6.0. Xibo develop still locks v3.5.1.

Suggested fix

1. Update ics-parser once a release includes the RECURRENCE-ID check, or pin a commit from master.
