diff --git a/calendar/inc/class.calendar_boupdate.inc.php b/calendar/inc/class.calendar_boupdate.inc.php index 0b7280c873..320c409d28 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');