From 5ad6ee2e9973e30e5dc21679eec98349023ac03c Mon Sep 17 00:00:00 2001 From: Lennart <18233294+lennart-k@users.noreply.github.com> Date: Tue, 3 Jun 2025 23:20:02 +0200 Subject: [PATCH] expand_recurrence remove all recurrence properties --- crates/ical/src/icalendar/event.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/ical/src/icalendar/event.rs b/crates/ical/src/icalendar/event.rs index e529506..00e448f 100644 --- a/crates/ical/src/icalendar/event.rs +++ b/crates/ical/src/icalendar/event.rs @@ -98,6 +98,9 @@ impl EventObject { let date = CalDateTime::from(date); let mut ev = self.event.clone(); ev.remove_property("RRULE"); + ev.remove_property("RDATE"); + ev.remove_property("EXDATE"); + ev.remove_property("EXRULE"); ev.set_property(Property { name: "RECURRENCE-ID".to_string(), value: Some(date.format()),