Use minutes not hours.
No idea how this could happen…
This commit is contained in:
parent
9043dc31c8
commit
297306e1df
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Reference in a new issue