diff --git a/patches.txt b/patches.txt index 079a85010..2790b6f72 100644 --- a/patches.txt +++ b/patches.txt @@ -6,6 +6,7 @@ Patches: - SabreDAV: Make sure that files that are children of directories, are reported as files https://github.com/fruux/sabre-dav/issues/982 - SabreDAV: Don't open the file on HEAD requests https://github.com/sabre-io/dav/pull/1058 - SabreDAV: Properly parse carddav address-data https://github.com/sabre-io/dav/pull/1025 +- SabreVObject: Broker: add timezone to CANCEL messages https://github.com/sabre-io/vobject/pull/412 - SabreXML: Fix invalid PHP docs https://github.com/fruux/sabre-xml/pull/128 - SabreXML: Prevent infinite loops for empty props element https://github.com/fruux/sabre-xml/pull/132 - ZipStreamer: Fix zip generation for 7zip https://github.com/McNetic/PHPZipStreamer/pull/39 diff --git a/sabre/vobject/lib/ITip/Broker.php b/sabre/vobject/lib/ITip/Broker.php index b954cdc8d..3a91e76dd 100644 --- a/sabre/vobject/lib/ITip/Broker.php +++ b/sabre/vobject/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,