forked from extern/egroupware
fix PHP 8.0 TypeError: Unsupported operand types: EGroupware\Api\DateTime - EGroupware\Api\DateTime
This commit is contained in:
parent
2cb1007525
commit
a7e796a66b
@ -600,8 +600,8 @@ class calendar_ical extends calendar_boupdate
|
|||||||
if (empty($event['whole_day']))
|
if (empty($event['whole_day']))
|
||||||
{
|
{
|
||||||
// Hack for CalDAVTester to export duration instead of endtime
|
// Hack for CalDAVTester to export duration instead of endtime
|
||||||
if ($tzid == 'UTC' && $event['end'] - $event['start'] <= 86400)
|
if ($tzid == 'UTC' && ($duration = Api\DateTime::to($event['end'], 'ts') - Api\DateTime::to($event['start'], 'ts')) <= 86400)
|
||||||
$attributes['duration'] = $event['end'] - $event['start'];
|
$attributes['duration'] = $duration;
|
||||||
else
|
else
|
||||||
$attributes['DTEND'] = self::getDateTime($event['end'],$tzid,$parameters['DTEND']);
|
$attributes['DTEND'] = self::getDateTime($event['end'],$tzid,$parameters['DTEND']);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user