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
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).
@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.
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'));
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
The text was updated successfully, but these errors were encountered: