'datetime-local', ); /** * {@inheritDoc} */ protected $format = self::DATETIME_LOCAL_FORMAT; /** * Retrieves a DateStepValidator configured for a Date Input type * * @return \Zend\Validator\ValidatorInterface */ protected function getStepValidator() { $stepValue = (isset($this->attributes['step'])) ? $this->attributes['step'] : 1; // Minutes $baseValue = (isset($this->attributes['min'])) ? $this->attributes['min'] : '1970-01-01T00:00'; return new DateStepValidator(array( 'format' => $this->format, 'baseValue' => $baseValue, 'step' => new \DateInterval("PT{$stepValue}M"), )); } }