From fa438666807a5e06f02f6688e962dcbad0512096 Mon Sep 17 00:00:00 2001 From: Bo Simonsen Date: Thu, 10 May 2018 10:36:16 +0200 Subject: [PATCH] Broker: add timezone to CANCEL messages If DTSTART and/or DTEND and other times are specified with a TZID, some clients may fail reading the generated iCal data, since the VTIMEZONE definition is missing. --- lib/ITip/Broker.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/ITip/Broker.php b/lib/ITip/Broker.php index b954cdc8d..3a91e76dd 100644 --- a/lib/ITip/Broker.php +++ b/lib/ITip/Broker.php @@ -523,6 +523,11 @@ protected function parseEventForOrganizer(VCalendar $calendar, array $eventInfo, // Creating the new iCalendar body. $icalMsg = new VCalendar(); $icalMsg->METHOD = $message->method; + + foreach ($calendar->select('VTIMEZONE') as $timezone) { + $icalMsg->add(clone $timezone); + } + $event = $icalMsg->add('VEVENT', [ 'UID' => $message->uid, 'SEQUENCE' => $message->sequence,