Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
revert time calucation
  • Loading branch information
David Tahir committed Jan 9, 2022
commit 2aceddd1192e7408afd847c9577c1db27c68fd4c
4 changes: 2 additions & 2 deletions lib/Controller/AjaxController.php
Original file line number Diff line number Diff line change
Expand Up @@ -1199,7 +1199,7 @@ public function getWeeksSince($timestamp){
$oneWeek = \DateInterval::createFromDateString('1 week');
$currentWeek = $start;
$weeks = [];
while ($currentWeek <= $end){
while ($currentWeek < $end){
$weeks[] = $currentWeek->format("Y-m-d");
$currentWeek->add($oneWeek);
}
Expand All @@ -1211,7 +1211,7 @@ public function getMonthsSince($timestamp){
$oneMonth = \DateInterval::createFromDateString('1 month');
$currentMonth = $start;
$months = [];
while ($currentMonth <= $end){
while ($currentMonth < $end){
$months[] = $currentMonth->format("Y-m");
$currentMonth->add($oneMonth);
}
Expand Down