Skip to content
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

Restrict Validation::time() so it requires minutes not just hours #14969

Merged
merged 1 commit into from Sep 9, 2020

Conversation

othercorey
Copy link
Member

I am proposing this as the alternative to #14930. I don't think most users expect hours only to pass validation in a 24-hour format.

PHP DateTime will not parse hours-only when passed to the constructor so it would require a custom format for users that want to accept this input.

https://3v4l.org/iYb3Q

Did not adjust the am/pm (meridian) format which will validate something like "1 pm". These formats are never marshaled so I don't know when users expect to use them.

@othercorey othercorey added this to the 4.2.0 milestone Sep 8, 2020
@markstory
Copy link
Member

Did you mean as an alternative to #14929?

@othercorey
Copy link
Member Author

Either way. I'm suggesting we treat it as an implementation bug not a documentation bug.

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

Successfully merging this pull request may close these issues.

None yet

3 participants