Skip to content

Commit

Permalink
Only default to NOW if requested.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Scherer committed May 13, 2015
1 parent c7c32b6 commit 82dd42e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/View/Helper/FormHelper.php
Expand Up @@ -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) {
Expand Down

0 comments on commit 82dd42e

Please sign in to comment.