This commit is contained in:
James Cole 2021-04-03 12:16:29 +02:00
parent 34f4b16a63
commit 472497cafd
No known key found for this signature in database
GPG Key ID: B5669F9493CDE38D

View File

@ -116,7 +116,7 @@ class IndexController extends Controller
}
$current = $array['pay_dates'][0] ?? null;
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);
}