diff --git a/calendar/inc/class.calendar_ical.inc.php b/calendar/inc/class.calendar_ical.inc.php index c00605379d..a413b5119f 100644 --- a/calendar/inc/class.calendar_ical.inc.php +++ b/calendar/inc/class.calendar_ical.inc.php @@ -590,6 +590,8 @@ class calendar_ical extends calendar_boupdate array('VALUE' => 'DATE')); } unset($attributes['DTSTART']); + // Outlook does NOT care about type of DTSTART/END, only setting X-MICROSOFT-CDO-ALLDAYEVENT is used to determine an event is a whole-day event + $vevent->setAttribute('X-MICROSOFT-CDO-ALLDAYEVENT','TRUE'); } break; @@ -2369,6 +2371,9 @@ class calendar_ical extends calendar_boupdate error_log(__METHOD__."() find DTEND AND DURATION --> ignoring DURATION"); } break; + case 'X-MICROSOFT-CDO-ALLDAYEVENT': + $event['whole_day'] = true; + break; case 'AALARM': case 'DALARM': $alarmTime = $attributes['value'];