From 297306e1df197f0b9135d2bcf0f94bb4066088f9 Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Mon, 13 Apr 2015 21:51:08 +0200 Subject: [PATCH] Use minutes not hours. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit No idea how this could happen… --- .../Bundle/CalciferBundle/Command/GenerateEventsCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Hackspace/Bundle/CalciferBundle/Command/GenerateEventsCommand.php b/src/Hackspace/Bundle/CalciferBundle/Command/GenerateEventsCommand.php index 005664e..9f7878a 100755 --- a/src/Hackspace/Bundle/CalciferBundle/Command/GenerateEventsCommand.php +++ b/src/Hackspace/Bundle/CalciferBundle/Command/GenerateEventsCommand.php @@ -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);