Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Validator Time issue #103

Open
RayFinney opened this issue Jul 11, 2016 · 2 comments
Open

Validator Time issue #103

RayFinney opened this issue Jul 11, 2016 · 2 comments

Comments

@RayFinney
Copy link

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).

@pawel-lewtak
Copy link

@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.

@weierophinney
Copy link
Member

This repository has been closed and moved to laminas/laminas-validator; a new issue has been opened at laminas/laminas-validator#26.

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

No branches or pull requests

3 participants