From 94f4d7f32e8dcffcc43b46c6fee19d472259e726 Mon Sep 17 00:00:00 2001 From: wangzemei Date: Mon, 23 Jun 2025 16:00:22 +0800 Subject: [PATCH] * [bug#63574] fix the issues of story count. --- module/metric/calc/system/scale/count_of_changed_story.php | 1 - module/metric/calc/system/scale/scale_of_changed_story.php | 1 - 2 files changed, 2 deletions(-) diff --git a/module/metric/calc/system/scale/count_of_changed_story.php b/module/metric/calc/system/scale/count_of_changed_story.php index a252ed7afc..d5a0c48d79 100644 --- a/module/metric/calc/system/scale/count_of_changed_story.php +++ b/module/metric/calc/system/scale/count_of_changed_story.php @@ -32,7 +32,6 @@ class count_of_changed_story extends baseCalc $executionStartDate = new DateTime($row->executionStartDate); $executionEndDate = new DateTime($row->executionEndDate); - $executionStartDate = $executionStartDate->modify('-1 day'); $executionEndDate = $executionEndDate->modify('+1 day'); $changedDate = new DateTime($row->changedDate); if(!empty($row->executionStartDate) && !empty($row->executionEndDate) && ($changedDate < $executionStartDate || $changedDate > $executionEndDate)) return false; diff --git a/module/metric/calc/system/scale/scale_of_changed_story.php b/module/metric/calc/system/scale/scale_of_changed_story.php index 8b337888ff..22b9a6272a 100644 --- a/module/metric/calc/system/scale/scale_of_changed_story.php +++ b/module/metric/calc/system/scale/scale_of_changed_story.php @@ -33,7 +33,6 @@ class scale_of_changed_story extends baseCalc $executionStartDate = new DateTime($row->executionStartDate); $executionEndDate = new DateTime($row->executionEndDate); - $executionStartDate = $executionStartDate->modify('-1 day'); $executionEndDate = $executionEndDate->modify('+1 day'); $changedDate = new DateTime($row->changedDate); if(empty($row->changedDate) || $row->status == 'changing' || $row->status == 'reviewing') return false;