mirror of
https://github.com/werkraum-media/events.git
synced 2024-11-25 23:56:10 +01:00
Fix date constraint for same days
This commit is contained in:
parent
080e526b26
commit
e388ece205
2 changed files with 3 additions and 3 deletions
|
@ -162,10 +162,10 @@ class DateController extends ActionController
|
||||||
$demand->setSearchword((string)$this->request->getArgument('searchword'));
|
$demand->setSearchword((string)$this->request->getArgument('searchword'));
|
||||||
|
|
||||||
if ($this->request->hasArgument('start') && $this->request->getArgument('start') != '')
|
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') != '')
|
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') != '')
|
if ($this->request->hasArgument('considerDate') && $this->request->getArgument('considerDate') != '')
|
||||||
$demand->setConsiderDate(strtotime($this->request->getArgument('considerDate')));
|
$demand->setConsiderDate(strtotime($this->request->getArgument('considerDate')));
|
||||||
|
|
Loading…
Reference in a new issue