Use minutes not hours.

No idea how this could happen…
This commit is contained in:
Tim Schumacher 2015-04-13 21:51:08 +02:00
parent 9043dc31c8
commit 297306e1df

View file

@ -57,7 +57,7 @@ class GenerateEventsCommand extends ContainerAwareCommand
$event->location = $entity->location;
$event->startdate = $next_date;
if ($entity->duration > 0) {
$duration = new \DateInterval("PT".$entity->duration.'H');
$duration = new \DateInterval("PT".$entity->duration.'M');
/** @var \DateTime $enddate */
$enddate = clone $next_date;
$enddate->add($duration);