From e388ece205ccab759f073fff24cb7ffdfaabd199 Mon Sep 17 00:00:00 2001 From: Dirk Date: Wed, 11 Dec 2019 09:15:07 +0100 Subject: [PATCH] Fix date constraint for same days --- Classes/Controller/DateController.php | 4 ++-- Classes/Domain/Repository/DateRepository.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Classes/Controller/DateController.php b/Classes/Controller/DateController.php index ea5446e..abefbaa 100644 --- a/Classes/Controller/DateController.php +++ b/Classes/Controller/DateController.php @@ -162,10 +162,10 @@ class DateController extends ActionController $demand->setSearchword((string)$this->request->getArgument('searchword')); if ($this->request->hasArgument('start') && $this->request->getArgument('start') != '') - $demand->setStart(strtotime($this->request->getArgument('start'))); + $demand->setStart(strtotime($this->request->getArgument('start') + ' 00:00:00')); if ($this->request->hasArgument('end') && $this->request->getArgument('end') != '') - $demand->setEnd(strtotime($this->request->getArgument('end'))); + $demand->setEnd(strtotime($this->request->getArgument('end') + ' 23:59:59')); if ($this->request->hasArgument('considerDate') && $this->request->getArgument('considerDate') != '') $demand->setConsiderDate(strtotime($this->request->getArgument('considerDate'))); diff --git a/Classes/Domain/Repository/DateRepository.php b/Classes/Domain/Repository/DateRepository.php index 86ac8e3..be63ddb 100644 --- a/Classes/Domain/Repository/DateRepository.php +++ b/Classes/Domain/Repository/DateRepository.php @@ -38,7 +38,7 @@ class DateRepository extends \TYPO3\CMS\Extbase\Persistence\Repository // For testing purposes // $query = $this->createDemandQueryViaBuilder($demand); - //return $query->execute()->fetchAll(); + // return $query->execute()->fetchAll(); } /**