convert old eGW whole day events enddate to correct ical value

This commit is contained in:
Christian Binder 2007-10-10 07:03:20 +00:00
parent b09e764ad0
commit 2c3996e4e5

View File

@ -213,6 +213,7 @@
case 'DTEND': case 'DTEND':
if(date('H:i:s',$event['end']) == '23:59:59') $event['end']++; if(date('H:i:s',$event['end']) == '23:59:59') $event['end']++;
if(date('H:i:s',$event['end']) == '23:59:00') $event['end']+=60; // needed by old eGW whole-day events
$attributes[$icalFieldName] = $event['end']; $attributes[$icalFieldName] = $event['end'];
break; break;