Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

pass on the configured format to the DateValidator instead of hardcoding it #3328

Closed
wants to merge 5 commits into
from

Conversation

Projects
None yet
2 participants
Contributor

skoop commented Jan 2, 2013

As it turns out, the date format was hardcoded when instantiating the validators, which seems odd and counter-intuitive. This change allows for alternative date formats to be used without the validator failing.

weierophinney added a commit that referenced this pull request Jan 2, 2013

[#3328][#3269] Ensure date format is used consistently
- Removed getDateValidator() from all date/time element implementations
- Ensured $format is present on all date/time element implementations
- Use $format when creating step validators

weierophinney added a commit that referenced this pull request Jan 2, 2013

@ghost ghost assigned weierophinney Jan 2, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment