Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[#2947] Alias DateTime to PhpDateTime

- because we have a DateTime class in the current namespace
  • Loading branch information...
commit 025968b5dbf55af96611103af7d842900a8d8fae 1 parent aa7b1c7
@weierophinney weierophinney authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 library/Zend/Form/Element/DateTimeSelect.php
View
4 library/Zend/Form/Element/DateTimeSelect.php
@@ -10,7 +10,7 @@
namespace Zend\Form\Element;
-use DateTime;
+use DateTime as PhpDateTime;
use Zend\Form\Form;
use Zend\Validator\ValidatorInterface;
use Zend\Validator\Date as DateValidator;
@@ -211,7 +211,7 @@ public function shouldShowSeconds()
*/
public function setValue($value)
{
- if ($value instanceof DateTime) {
+ if ($value instanceof PhpDateTime) {
$value = array(
'year' => $value->format('Y'),
'month' => $value->format('m'),
Please sign in to comment.
Something went wrong with that request. Please try again.