Export all-day events as 'EVENT' to Nokia devices

This commit is contained in:
Jörg Lehrke 2010-04-23 14:38:07 +00:00
parent 64b8873ba1
commit a707c183f3

View File

@ -796,7 +796,7 @@ class calendar_ical extends calendar_boupdate
$attributes['X-EPOCAGENDAENTRYTYPE'] = 'ANNIVERSARY'; $attributes['X-EPOCAGENDAENTRYTYPE'] = 'ANNIVERSARY';
$attributes['DTEND'] = $attributes['DTSTART']; $attributes['DTEND'] = $attributes['DTSTART'];
} }
elseif ($event['special'] == '2') elseif ($event['special'] == '2' || !empty($event['whole_day']))
{ {
$attributes['X-EPOCAGENDAENTRYTYPE'] = 'EVENT'; $attributes['X-EPOCAGENDAENTRYTYPE'] = 'EVENT';
} }