-
Notifications
You must be signed in to change notification settings - Fork 11.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[5.3] Fix date_format validation for all formats #16692
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
👍 Currently as it looks like the |
👍 |
rohitsubedi
changed the title
Fix date_format validation for all formats
[5.3] Fix date_format validation for all formats
Dec 7, 2016
Can you guys share a validation that passes while it should fail? |
validation rule for input param: |
Thanks |
Great! @rohitsubedi |
taylorotwell
pushed a commit
that referenced
this pull request
Dec 17, 2016
) * Revert "Merge pull request #16692 from rohitsubedi/rohitsubedi-patch-1" This reverts commit 4c70ab0, reversing changes made to e91f04b. * validation: add a few more date_format tests Showing off how Y-m-d\TH:i:sP matches multple valid ISO 8601 date formats. * validation: add test showing 00-00-01 passes for Y-m-d It's unexpected for Y to match two-digit dates
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix date_format validation for all format
This PR fixes the case when validation rule is date_format:Y-m-d, It passes the format 16-01-01. But the year should be digit 4.