浏览代码

OpeningSolver : correctif

packProduct
Guillaume 3 年前
父节点
当前提交
3b0bd28e3d
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. +5
    -1
      Solver/Section/OpeningSolver.php

+ 5
- 1
Solver/Section/OpeningSolver.php 查看文件

@@ -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;
}
}

正在加载...
取消
保存