remove 24h shift filter time range limit

This commit is contained in:
msquare 2017-07-19 21:30:18 +02:00
parent e93dd774a5
commit 903a1f9790
1 changed files with 0 additions and 9 deletions

View File

@ -9,12 +9,6 @@ namespace Engelsystem;
*/ */
class ShiftsFilter class ShiftsFilter
{ {
/**
* How long can the time interval be?
* 86400 = one day
*/
const MAX_DURATION = 86400;
/** /**
* Shift is completely full. * Shift is completely full.
*/ */
@ -98,9 +92,6 @@ class ShiftsFilter
*/ */
public function setEndTime($endTime) public function setEndTime($endTime)
{ {
if ($endTime - $this->startTime > ShiftsFilter::MAX_DURATION) {
$endTime = $this->startTime + ShiftsFilter::MAX_DURATION;
}
$this->endTime = $endTime; $this->endTime = $endTime;
} }