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

Validator Time issue #26

Closed
weierophinney opened this issue Dec 31, 2019 · 2 comments
Closed

Validator Time issue #26

weierophinney opened this issue Dec 31, 2019 · 2 comments

Comments

@weierophinney
Copy link
Member

I try to use the Time FormElement.
\zend-validator\src\DateStep will throw everytime an error at
$absoluteBaseDate = new DateTime($baseDate->format('Y-m-d H:i:s'), new DateTimeZone('UTC'));

Call to a member function format() on boolean

it seems like that
$baseDate = $this->convertToDateTime($this->baseValue, false);

returns a false if the baseValue is a time (00:00:00).


Originally posted by @RayFinney at zendframework/zend-validator#103

@weierophinney
Copy link
Member Author

@Tiega91 you provided value of 00:00:00 which doesn't validate against format you provided Y-m-d H:i:s You should probably try using H:i:s as a format in this case.


Originally posted by @pawel-lewtak at zendframework/zend-validator#103 (comment)

@samsonasik
Copy link
Member

closing due to invalid usage.

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

No branches or pull requests

2 participants