Permalink
Browse files

[#2947] Alias DateTime to PhpDateTime

- because we have a DateTime class in the current namespace
  • Loading branch information...
weierophinney committed Nov 19, 2012
1 parent aa7b1c7 commit 025968b5dbf55af96611103af7d842900a8d8fae
Showing with 2 additions and 2 deletions.
  1. +2 −2 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'),

0 comments on commit 025968b

Please sign in to comment.