diff options
author | Georg Ehrke <developer@georgehrke.com> | 2017-06-09 12:13:02 +0200 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2017-09-05 13:13:37 +0200 |
commit | a1df91da9d1c2ea7e81601e2cf66ae747536d61f (patch) | |
tree | 518433ffa3c13945c4195f7a818e72521ee48831 /apps/dav/lib | |
parent | 86f28669fce3360a75513f06beb945ab54d20a6a (diff) | |
download | nextcloud-server-a1df91da9d1c2ea7e81601e2cf66ae747536d61f.tar.gz nextcloud-server-a1df91da9d1c2ea7e81601e2cf66ae747536d61f.zip |
Sabre/VObject returns DateTimeImmutable, not a simple DateTime
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'apps/dav/lib')
-rw-r--r-- | apps/dav/lib/CalDAV/Schedule/IMipPlugin.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php b/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php index 711d54d7f8e..8e1d7e2563d 100644 --- a/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php +++ b/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php @@ -160,11 +160,13 @@ class IMipPlugin extends SabreIMipPlugin { $lastOccurrence = $component->DTEND->getDateTime()->getTimeStamp(); } elseif (isset($component->DURATION)) { $endDate = clone $component->DTSTART->getDateTime(); - $endDate->add(DateTimeParser::parse($component->DURATION->getValue())); + // $component->DTEND->getDateTime() returns DateTimeImmutable + $endDate = $endDate->add(DateTimeParser::parse($component->DURATION->getValue())); $lastOccurrence = $endDate->getTimeStamp(); } elseif (!$component->DTSTART->hasTime()) { $endDate = clone $component->DTSTART->getDateTime(); - $endDate->modify('+1 day'); + // $component->DTSTART->getDateTime() returns DateTimeImmutable + $endDate = $endDate->modify('+1 day'); $lastOccurrence = $endDate->getTimeStamp(); } else { $lastOccurrence = $firstOccurrence; |