* CalDAV: fixed Outlook needs Microsoft specific x-property to recognice all-day events as such

This commit is contained in:
Ralf Becker 2012-02-10 11:19:42 +00:00
parent ccb2d9b80a
commit 2473b3060d

View File

@ -610,6 +610,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;
@ -2350,6 +2352,9 @@ class calendar_ical extends calendar_boupdate
{
switch ($attributes['name'])
{
case 'X-MICROSOFT-CDO-ALLDAYEVENT':
$event['whole_day'] = true;
break;
case 'AALARM':
case 'DALARM':
$alarmTime = $attributes['value'];