From 903a1f97902414fd2b5028726ee3a864e405f11a Mon Sep 17 00:00:00 2001 From: msquare Date: Wed, 19 Jul 2017 21:30:18 +0200 Subject: remove 24h shift filter time range limit --- includes/model/ShiftsFilter.php | 9 --------- 1 file changed, 9 deletions(-) (limited to 'includes/model') diff --git a/includes/model/ShiftsFilter.php b/includes/model/ShiftsFilter.php index 47ef50d7..3b691b55 100644 --- a/includes/model/ShiftsFilter.php +++ b/includes/model/ShiftsFilter.php @@ -9,12 +9,6 @@ namespace Engelsystem; */ class ShiftsFilter { - /** - * How long can the time interval be? - * 86400 = one day - */ - const MAX_DURATION = 86400; - /** * Shift is completely full. */ @@ -98,9 +92,6 @@ class ShiftsFilter */ public function setEndTime($endTime) { - if ($endTime - $this->startTime > ShiftsFilter::MAX_DURATION) { - $endTime = $this->startTime + ShiftsFilter::MAX_DURATION; - } $this->endTime = $endTime; } -- cgit v1.2.3-54-g00ecf