mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-05-01 11:56:21 +00:00
🤖 Auto commit for release 'develop' on 2025-08-05
This commit is contained in:
@@ -583,7 +583,7 @@ class Navigation
|
||||
*/
|
||||
public function preferredEndOfPeriod(Carbon $start, Carbon $end): string
|
||||
{
|
||||
$diff = $start->diffInMonths($end, true);
|
||||
$diff = $start->diffInMonths($end, true);
|
||||
if ($diff >= 1.001) {
|
||||
return 'endOfMonth';
|
||||
}
|
||||
@@ -601,7 +601,7 @@ class Navigation
|
||||
*/
|
||||
public function preferredRangeFormat(Carbon $start, Carbon $end): string
|
||||
{
|
||||
$diff = $start->diffInMonths($end, true);
|
||||
$diff = $start->diffInMonths($end, true);
|
||||
if ($diff >= 1.001) {
|
||||
return '1M';
|
||||
}
|
||||
@@ -619,7 +619,7 @@ class Navigation
|
||||
*/
|
||||
public function preferredSqlFormat(Carbon $start, Carbon $end): string
|
||||
{
|
||||
$diff = $start->diffInMonths($end, true);
|
||||
$diff = $start->diffInMonths($end, true);
|
||||
if ($diff >= 1.001) {
|
||||
return '%Y-%m';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user