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

DateTime Validator use the DATETIME_FORMAT instead of the given format #168

Closed
amohammad opened this issue Jun 15, 2017 · 2 comments
Closed
Labels
Milestone

Comments

@amohammad
Copy link

in the new function "valueIsValidDateTimeFormat($value)" in zend-form/src/Element/DateTime.php use the "static::DATETIME_FORMAT" instead of the given format in the form element and i get this error message " Zend\Form\Element\DateTime::getValidators expects "max" to conform to Y-m-d\TH:iP; received "2017-06-15" "

I think this line of code here should be changed to

$this->getFormat(),

Thanks.

@froschdesign froschdesign added this to the 2.10.2 milestone Jun 15, 2017
@alirezameskin
Copy link

I have fixed the problem #170

@Kwido
Copy link
Contributor

Kwido commented Jul 11, 2017

@alireza-m any progress on the requested changes?

@froschdesign froschdesign modified the milestones: 2.10.2, 2.10.3 Oct 17, 2017
@froschdesign froschdesign modified the milestones: 2.10.3, 2.11.0 Jul 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants