We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e13dba commit 2acedddCopy full SHA for 2aceddd
lib/Controller/AjaxController.php
@@ -1199,7 +1199,7 @@ public function getWeeksSince($timestamp){
1199
$oneWeek = \DateInterval::createFromDateString('1 week');
1200
$currentWeek = $start;
1201
$weeks = [];
1202
- while ($currentWeek <= $end){
+ while ($currentWeek < $end){
1203
$weeks[] = $currentWeek->format("Y-m-d");
1204
$currentWeek->add($oneWeek);
1205
}
@@ -1211,7 +1211,7 @@ public function getMonthsSince($timestamp){
1211
$oneMonth = \DateInterval::createFromDateString('1 month');
1212
$currentMonth = $start;
1213
$months = [];
1214
- while ($currentMonth <= $end){
+ while ($currentMonth < $end){
1215
$months[] = $currentMonth->format("Y-m");
1216
$currentMonth->add($oneMonth);
1217
0 commit comments