mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Calendar: Fix all day events were missing end date in iCal
This commit is contained in:
parent
a2fde92c89
commit
fa26bcb29c
@ -608,7 +608,12 @@ class calendar_ical extends calendar_boupdate
|
||||
else
|
||||
{
|
||||
// write start + end of whole day events as dates
|
||||
$event['end-nextday'] = $event['end'] + 12*3600; // we need the date of the next day, as DTEND is non-inclusive (= exclusive) in rfc2445
|
||||
if(!is_object($event['end']))
|
||||
{
|
||||
$event['end'] = new Api\DateTime($event['end']);
|
||||
}
|
||||
$event['end-nextday'] = clone $event['end'];
|
||||
$event['end-nextday']->add("1 day"); // we need the date of the next day, as DTEND is non-inclusive (= exclusive) in rfc2445
|
||||
foreach (array('start' => 'DTSTART','end-nextday' => 'DTEND') as $f => $t)
|
||||
{
|
||||
$time = new Api\DateTime($event[$f],Api\DateTime::$server_timezone);
|
||||
|
Loading…
Reference in New Issue
Block a user