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
If input is '2021-10-20T10:00:00Z' which is valid, but the output of $dateTime->format will be '2021-10-20T10:00:00+00:00' so the assertion fails unexpectedly.
Hi,
Assertion::date('2019-10-31 14:08:46.429', 'Y-m-d H:i:s.u')
will not work formatting the resulting date will not be the same as the input string:assert/lib/Assert/Assertion.php
Line 2396 in 99508be
2019-10-31 14:08:46.429
will be formatted as2019-10-31 14:08:46.429000
.These dates are equivalent.
A different method is needed to compare the dates.
A better check would be
The text was updated successfully, but these errors were encountered: