Skip to content

Commit 16a4e22

Browse files
committed
fixed previous day actvities
1 parent ed3616a commit 16a4e22

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/scripts/scrumHelper.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ function allIncluded(outputTarget = 'email') {
454454
const today = new Date();
455455
const yesterday = new Date(today.getTime() - 24 * 60 * 60 * 1000);
456456
startDateForCache = yesterday.toISOString().split('T')[0];
457-
endDateForCache = yesterday.toISOString().split('T')[0]; // Use yesterday for both start and end
457+
endDateForCache = today.toISOString().split('T')[0]; // Use yesterday for start and today for end
458458
} else if (startingDate && endingDate) {
459459
startDateForCache = startingDate;
460460
endDateForCache = endingDate;
@@ -638,7 +638,7 @@ function allIncluded(outputTarget = 'email') {
638638
const today = new Date();
639639
const yesterday = new Date(today.getTime() - 24 * 60 * 60 * 1000);
640640
startDateForCommits = yesterday.toISOString().split('T')[0];
641-
endDateForCommits = yesterday.toISOString().split('T')[0]; // Use yesterday for both start and end
641+
endDateForCommits = today.toISOString().split('T')[0]; // Use yesterday for start and today for end
642642
} else if (startingDate && endingDate) {
643643
startDateForCommits = startingDate;
644644
endDateForCommits = endingDate;
@@ -1091,7 +1091,7 @@ ${userReason}`;
10911091
const today = new Date();
10921092
const yesterday = new Date(today.getTime() - 24 * 60 * 60 * 1000);
10931093
startDate = yesterday.toISOString().split('T')[0];
1094-
endDate = yesterday.toISOString().split('T')[0]; // Use yesterday for both start and end
1094+
endDate = today.toISOString().split('T')[0]; // Use yesterday for start and today for end
10951095
} else if (startingDate && endingDate) {
10961096
startDate = startingDate;
10971097
endDate = endingDate;
@@ -1317,7 +1317,7 @@ ${userReason}`;
13171317
const today = new Date();
13181318
const yesterday = new Date(today.getTime() - 24 * 60 * 60 * 1000);
13191319
startDateForRange = yesterday.toISOString().split('T')[0];
1320-
endDateForRange = yesterday.toISOString().split('T')[0]; // Use yesterday for both start and end
1320+
endDateForRange = today.toISOString().split('T')[0]; // Use yesterday for start and today for end
13211321
} else if (startingDate && endingDate) {
13221322
startDateForRange = startingDate;
13231323
endDateForRange = endingDate;
@@ -1405,7 +1405,7 @@ ${userReason}`;
14051405
const today = new Date();
14061406
const yesterday = new Date(today.getTime() - 24 * 60 * 60 * 1000);
14071407
startDateFilter = new Date(yesterday.toISOString().split('T')[0] + 'T00:00:00Z');
1408-
endDateFilter = new Date(yesterday.toISOString().split('T')[0] + 'T23:59:59Z'); // Use yesterday for both start and end
1408+
endDateFilter = new Date(today.toISOString().split('T')[0] + 'T23:59:59Z'); // Use yesterday for start and today for end
14091409
} else if (startingDate && endingDate) {
14101410
startDateFilter = new Date(startingDate + 'T00:00:00Z');
14111411
endDateFilter = new Date(endingDate + 'T23:59:59Z');

0 commit comments

Comments
 (0)