Skip to content
Permalink
Browse files

Only default to NOW if requested.

  • Loading branch information...
dereuromark committed May 13, 2015
1 parent c7c32b6 commit 82dd42e8c84b7cb5992db5a4115dbc44547c88b3
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/View/Helper/FormHelper.php
@@ -2242,7 +2242,7 @@ protected function _datetimeOptions($options)
}
unset($options['interval'], $options['round']);
if (!isset($options['val'])) {
if ($options['val'] === true) {
$val = new DateTime();
$currentYear = $val->format('Y');
if (isset($options['year']['end']) && $options['year']['end'] < $currentYear) {

0 comments on commit 82dd42e

Please sign in to comment.
You can’t perform that action at this time.