diff --git a/calendar/inc/class.calendar_ical.inc.php b/calendar/inc/class.calendar_ical.inc.php index ef25e69c9a..c00605379d 100644 --- a/calendar/inc/class.calendar_ical.inc.php +++ b/calendar/inc/class.calendar_ical.inc.php @@ -2998,7 +2998,7 @@ class calendar_ical extends calendar_boupdate // whole day events get one day in calendar_boupdate::save() if (!isset($event['end'])) { - $event['end'] = 60 * $this->cal_prefs['defaultlength']; + $event['end'] = $event['start'] + 60 * $this->cal_prefs['defaultlength']; } if ($this->calendarOwner) $event['owner'] = $this->calendarOwner;