Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

zendframework/zf2@1f93594 (1394225345)

  • Loading branch information...
commit c04843a24156ece6f3a95c8a24ffe2c65dd634f9 1 parent 5abf3cf
@weierophinney weierophinney authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 Element/DateTimeSelect.php
View
4 Element/DateTimeSelect.php
@@ -220,6 +220,10 @@ public function setValue($value)
}
}
+ if (is_null($value)) {
+ $value = new PhpDateTime();
+ }
+
if ($value instanceof PhpDateTime) {
$value = array(
'year' => $value->format('Y'),
Please sign in to comment.
Something went wrong with that request. Please try again.