forked from extern/egroupware
fix PHP 8.0 TypeError: Unsupported operand types: EGroupware\Api\DateTime - int
This commit is contained in:
parent
9fbd07e335
commit
6b8f8c6473
@ -928,7 +928,7 @@ class calendar_ical extends calendar_boupdate
|
||||
|
||||
if ($alarmData['offset'])
|
||||
{
|
||||
$alarmData['time'] = $event['start'] - $alarmData['offset'];
|
||||
$alarmData['time'] = Api\DateTime::to($event['start'], 'ts') - $alarmData['offset'];
|
||||
}
|
||||
|
||||
$description = trim(preg_replace("/\r?\n?\\[[A-Z_]+:.*\\]/i", '', $event['description']));
|
||||
|
Loading…
Reference in New Issue
Block a user