forked from extern/egroupware
fix PHP 8.0 TypeError: Unsupported operand types: EGroupware\Api\DateTime - int
This commit is contained in:
parent
1ad1c6e951
commit
30579b64a3
@ -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