[+BUGFIX] Extbase (Persistence): Replaced $dateTime->getTimestamp() with $dateTime...
authorJochen Rau <j.rau@web.de>
Wed, 10 Mar 2010 08:19:00 +0000 (08:19 +0000)
committerJochen Rau <j.rau@web.de>
Wed, 10 Mar 2010 08:19:00 +0000 (08:19 +0000)
typo3/sysext/extbase/Classes/Persistence/Storage/Typo3DbBackend.php

index 13a15b4..4fda07c 100644 (file)
@@ -545,7 +545,7 @@ class Tx_Extbase_Persistence_Storage_Typo3DbBackend implements Tx_Extbase_Persis
         */
        protected function getPlainValue($input) {
                if ($input instanceof DateTime) {
-                       return $input->getTimestamp();
+                       return $input->format('U');
                } elseif ($input instanceof Tx_Extbase_DomainObject_DomainObjectInterface) {
                        return $input->getUid();
                } elseif (is_bool($input)) {