mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-05 20:22:07 +00:00
Fix #4586
This commit is contained in:
@@ -116,7 +116,7 @@ class IndexController extends Controller
|
|||||||
}
|
}
|
||||||
$current = $array['pay_dates'][0] ?? null;
|
$current = $array['pay_dates'][0] ?? null;
|
||||||
if (null !== $current && !$nextExpectedMatch->isToday()) {
|
if (null !== $current && !$nextExpectedMatch->isToday()) {
|
||||||
$currentExpectedMatch = Carbon::createFromFormat('!Y-m-d', $current);
|
$currentExpectedMatch = Carbon::createFromFormat(Carbon::ATOM, $current);
|
||||||
$array['next_expected_match_diff'] = $currentExpectedMatch->diffForHumans(today(), Carbon::DIFF_RELATIVE_TO_NOW);
|
$array['next_expected_match_diff'] = $currentExpectedMatch->diffForHumans(today(), Carbon::DIFF_RELATIVE_TO_NOW);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user