This commit is contained in:
James Cole
2021-04-03 12:16:29 +02:00
parent 34f4b16a63
commit 472497cafd

View File

@@ -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);
} }