fix PHP 8.0 TypeError: Unsupported operand types: EGroupware\Api\DateTime - int

This commit is contained in:
Ralf Becker 2021-11-05 14:58:38 +01:00
parent 9fbd07e335
commit 6b8f8c6473

View File

@ -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']));