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

This commit is contained in:
Ralf Becker 2021-11-09 08:39:21 +01:00
parent 3655619b43
commit 986944c261

View File

@ -375,7 +375,7 @@ class calendar_boupdate extends calendar_bo
}
$checked = 0;
$start = microtime(true);
$duration = $event['end']-$event['start'];
$duration = Api\DateTime::to($event['end'], 'ts') - Api\DateTime::to($event['start'], 'ts');
foreach($recurences as $date)
{
$startts = $date->format('ts');