mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
fix Navigation.php MTD logic to make tests pass.
This commit is contained in:
parent
b8e18f80f4
commit
63012f269c
@ -283,13 +283,10 @@ class Navigation
|
||||
return $currentEnd;
|
||||
}
|
||||
if ('MTD' === $repeatFreq) {
|
||||
$today = today();
|
||||
if ($today->isSameMonth($end)) {
|
||||
return $today->endOfDay();
|
||||
}
|
||||
|
||||
return $end->endOfMonth();
|
||||
return $end->startOfMonth()->startOfDay();
|
||||
}
|
||||
|
||||
|
||||
|
||||
$result = match ($repeatFreq) {
|
||||
'last7' => $currentEnd->addDays(7)->startOfDay(),
|
||||
|
Loading…
Reference in New Issue
Block a user