Add explicit step-attribute to html5-datetime* input elements

fixes #8314
This commit is contained in:
Johannes Meyer 2015-01-29 15:40:37 +01:00
parent dd483d98df
commit 7e792f5d2e
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ class Zend_View_Helper_FormDateTime extends Zend_View_Helper_FormElement
$type = $attribs['local'] === true ? 'datetime-local' : 'datetime';
unset($attribs['local']); // Unset local to not render it again in $this->_htmlAttribs($attribs)
$html5 = sprintf(
'<input type="%s" name="%s" id="%s" value="%s"%s%s%s%s%s',
'<input type="%s" name="%s" id="%s" step="1" value="%s"%s%s%s%s%s',
$type,
$this->view->escape($name),
$this->view->escape($id),