You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are a few places where strtotime() is used in Laravel, for example in getDateTimestamp in ValidatesAttributes.php. This makes it so that Carbon::setTestNow() is ignored for validation.
I feel like this should be changed in a similar manner to #15544
Steps To Reproduce:
Carbon::setTestNow(Carbon::parse('2000-01-01', 'UTC'));
$validator = Validator::make(['date' => '2005-06-06 12:00:00Z'], ['date' => 'after:now']);
dd($validator->errors()->all()); // "The date must be a date after now."
The text was updated successfully, but these errors were encountered:
Description:
There are a few places where strtotime() is used in Laravel, for example in getDateTimestamp in ValidatesAttributes.php. This makes it so that Carbon::setTestNow() is ignored for validation.
I feel like this should be changed in a similar manner to #15544
Steps To Reproduce:
The text was updated successfully, but these errors were encountered: