From b9d72ddc77c84abdd9cfe4f61a104cfc98bed7f0 Mon Sep 17 00:00:00 2001 From: campbell-m <87438215+campbell-m@users.noreply.github.com> Date: Sun, 6 Aug 2023 10:12:46 +0100 Subject: [PATCH] Fix problem with importing weekly repeats. See GitHub Issues #3485. --- web/functions_ical.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/web/functions_ical.inc b/web/functions_ical.inc index 3d365d03d7..2f578620cd 100644 --- a/web/functions_ical.inc +++ b/web/functions_ical.inc @@ -399,6 +399,7 @@ function get_repeat_rule(string $rrule, int $start_time, array &$errors) if (isset($rules['BYDAY'])) { $byday_days = explode(',', $rules['BYDAY']); + $byday_days = array_map(__NAMESPACE__ . '\\ICalendar\\RFC5545::convertDayToOrd', $byday_days); } else {