From fbb92627b84aece310d37cd8d0cc457876555320 Mon Sep 17 00:00:00 2001 From: mayue Date: Wed, 6 Jul 2022 15:51:28 +0800 Subject: [PATCH] * Fix bug #24832. --- module/execution/model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/execution/model.php b/module/execution/model.php index cd935467a3..b4e6f3e89f 100644 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -3110,12 +3110,12 @@ class executionModel extends model } elseif((helper::today() >= $execution->begin) and (helper::today() <= $execution->end)) { - $begin = (date('Y-m-d', strtotime('-14 days')) < $execution->begin) ? $execution->begin : date('Y-m-d', strtotime('-14 days')); + $begin = (date('Y-m-d', strtotime('-13 days')) < $execution->begin) ? $execution->begin : date('Y-m-d', strtotime('-13 days')); $end = helper::today(); } elseif((helper::today() > $execution->end)) { - $begin = date($execution->end, strtotime('-14 days')) > $execution->begin ? date($execution->end, strtotime('-14 days')) : $execution->begin; + $begin = date($execution->end, strtotime('-13 days')) > $execution->begin ? date($execution->end, strtotime('-13 days')) : $execution->begin; $end = $execution->end; }