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
As the fractional part seems to be quite complicated in the standard, I'm not sure if this is an easy thing to fix. I'll try to play around a bit when I get the time.
The text was updated successfully, but these errors were encountered:
I'm trying to validate this json input:
{ "ts": "2019-02-08T09:04:05.317Z" }
using this rule:
v::key('ts', v::nullable(v::dateTime('c')))
Which fails, because it does not like the fractional second part (which PHP's DateTime does support). The source seems to be this conversion into a fixed format for the date_parse_from_format function call: https://github.com/Respect/Validation/blob/master/library/Helpers/CanValidateDateTime.php#L33
As the fractional part seems to be quite complicated in the standard, I'm not sure if this is an easy thing to fix. I'll try to play around a bit when I get the time.
The text was updated successfully, but these errors were encountered: