From 1112b720007bc66dff0ff8985e9855e6043a867e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Fromme?= Date: Fri, 7 Feb 2020 16:53:21 +0100 Subject: [PATCH] Adjust to expected arguments --- .../ext/ep_products/Classes/Service/GroupsSwissService.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/public/typo3conf/ext/ep_products/Classes/Service/GroupsSwissService.php b/public/typo3conf/ext/ep_products/Classes/Service/GroupsSwissService.php index 292858e5..b3727066 100644 --- a/public/typo3conf/ext/ep_products/Classes/Service/GroupsSwissService.php +++ b/public/typo3conf/ext/ep_products/Classes/Service/GroupsSwissService.php @@ -26,7 +26,6 @@ namespace EP\EpProducts\Service; * This copyright notice MUST APPEAR in all copies of the script! ***************************************************************/ -use CalendR\Period\Range; use Doctrine\DBAL\DBALException; use EP\EpProducts\Domain\Model\Contingent; use EP\EpProducts\Domain\Model\Hotel; @@ -183,8 +182,8 @@ class GroupsSwissService implements SingletonInterface, LoggerAwareInterface protected function resetChart(Period $range, $apiKey, $houseNumber): void { $item = [ - 'from' => $range->getStartDate()->format('Y-m-d'), - 'to' => $range->getEndDate()->format('Y-m-d'), + 'from' => $range->getStartDate(), + 'to' => $range->getEndDate(), ]; $this->addItem($item, 0, $apiKey, $houseNumber);