From 04f7dcebe474fc3aab10024b5206f539306a911d Mon Sep 17 00:00:00 2001 From: gdharris Date: Fri, 15 Aug 2014 15:31:48 -0400 Subject: [PATCH] MDL-46853 calendar: fix import of no duration events --- calendar/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/lib.php b/calendar/lib.php index 676b26dc83f..ba0fc08b795 100644 --- a/calendar/lib.php +++ b/calendar/lib.php @@ -2928,7 +2928,7 @@ function calendar_add_icalendar_event($event, $courseid, $subscriptionid, $timez $timezone; $eventrecord->timestart = strtotime($event->properties['DTSTART'][0]->value . ' ' . $tz); if (empty($event->properties['DTEND'])) { - $eventrecord->timeduration = 3600; // one hour if no end time specified + $eventrecord->timeduration = 0; // no duration if no end time specified } else { $endtz = isset($event->properties['DTEND'][0]->parameters['TZID']) ? $event->properties['DTEND'][0]->parameters['TZID'] : $timezone; -- 2.11.4.GIT