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
{{ message }}
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.
The date formats of form elements are not taken into account when a form is validated. This is because the formats are hardcoded right now. For example see Zend\Form\Element\Date on line 50.
The text was updated successfully, but these errors were encountered:
iirc this is expected behaviour as those elements are expected to map exactly how HTML5 validation works. But I don't know why @cgmartin allowed to change it in DateTime element.
Looks like the format property was added in 0029ccd but not updated in the validator. Should be an easy PR. As for why it changed in DateTime element, no clue - I must have missed those PRs. Maybe there's a use case for changing the formats, not sure.
I'd advise users against changing the format for the HTML5 date elements, since if the format doesn't match what the browser is expecting you'll run into issues. The default date formats are there to match the HTML5 spec.
The date formats of form elements are not taken into account when a form is validated. This is because the formats are hardcoded right now. For example see Zend\Form\Element\Date on line 50.
The text was updated successfully, but these errors were encountered: