diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-06-30 22:45:12 +0200 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-06-30 22:45:12 +0200 |
commit | a705b19cd598b538d0b82d97166d5d0ba03ff835 (patch) | |
tree | e947d892e55aa23f0bc752776e3ec979129c381f /apps/calendar | |
parent | f15941a967669c9a7e1e1c391b55e61a39e44484 (diff) | |
download | nextcloud-server-a705b19cd598b538d0b82d97166d5d0ba03ff835.tar.gz nextcloud-server-a705b19cd598b538d0b82d97166d5d0ba03ff835.zip |
little fix for import
Diffstat (limited to 'apps/calendar')
-rw-r--r-- | apps/calendar/lib/import.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/calendar/lib/import.php b/apps/calendar/lib/import.php index 9076a747a4f..3a7af8e4bfd 100644 --- a/apps/calendar/lib/import.php +++ b/apps/calendar/lib/import.php @@ -90,8 +90,9 @@ class OC_Calendar_Import{ if(!($object instanceof Sabre_VObject_Component_VEvent) && !($object instanceof Sabre_VObject_Component_VJournal) && !($object instanceof Sabre_VObject_Component_VTodo)){ continue; } + $dtend = OC_Calendar_Object::getDTEndFromVEvent($object); $object->DTSTART->getDateTime()->setTimezone(new DateTimeZone($this->tz)); - $object->DTEND = OC_Calendar_Object::getDTEndFromVEvent($object); + $object->DTEND->setDateTime($dtend->getDateTime(), $object->DTSTART->getDateType()); $object->DTEND->getDateTime()->setTimezone(new DateTimeZone($this->tz)); $vcalendar = $this->createVCalendar($object->serialize()); OC_Calendar_Object::add($this->id, $vcalendar); |