diff --git a/server/ControlScripts/SpotlightsScope.php b/server/ControlScripts/SpotlightsScope.php index 6a44047..0c60278 100644 --- a/server/ControlScripts/SpotlightsScope.php +++ b/server/ControlScripts/SpotlightsScope.php @@ -46,9 +46,10 @@ $tz = new \DateTimeZone('Europe/Kyiv'); $now = new \DateTime('now', $tz); - $limit = new \DateTime('9:00', $tz); + $from = new \DateTime('9:00', $tz); + $to = new \DateTime('18:00', $tz); - if ($now >= $limit) { + if ($now >= $from && $now <= $to) { $this -> all_spotlight_switch(false); } });