diff --git a/calendar/inc/class.calendar_boupdate.inc.php b/calendar/inc/class.calendar_boupdate.inc.php index fde5445c5d..849d1bcd50 100644 --- a/calendar/inc/class.calendar_boupdate.inc.php +++ b/calendar/inc/class.calendar_boupdate.inc.php @@ -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');