@@ -49,7 +49,11 @@ class OpeningSolver | |||
if($opening) { | |||
$now = new \DateTime(); | |||
if($weekDay == $now->format('N')) { | |||
if($now < $opening->getTimeEnd()) { | |||
$timeEnd = $opening->getTimeEnd(); | |||
$timeStart = $opening->getTimeStart(); | |||
if((($timeEnd && $now < $timeEnd) || !$timeEnd) | |||
&& (($timeStart && $now > $timeStart) || !$timeStart) ) { | |||
return true; | |||
} | |||
} |