[+BUGFIX] Extbase (Persistence): Replaced $dateTime->getTimestamp() with $dateTime...
[Packages/TYPO3.CMS.git] / 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)) {