[+BUGFIX] Extbase (Persistence): Fixed a bug where a field value was not properly...
authorJochen Rau <j.rau@web.de>
Fri, 19 Feb 2010 09:48:27 +0000 (09:48 +0000)
committerJochen Rau <j.rau@web.de>
Fri, 19 Feb 2010 09:48:27 +0000 (09:48 +0000)
typo3/sysext/extbase/Classes/Persistence/Mapper/DataMap.php

index 94a80bd..8526379 100644 (file)
@@ -607,7 +607,7 @@ class Tx_Extbase_Persistence_Mapper_DataMap {
                        case Tx_Extbase_Persistence_PropertyType::DECIMAL:
                                return (float) $string;
                        case Tx_Extbase_Persistence_PropertyType::DATE:
-                               return new DateTime(strftime('%Y-%m-%d %H:%M:%S', $string)); // TODO Check for Time Zone issues. Encode the time zone as well, and use the format defined by ISO used by TYPO3CR as well
+                               return new DateTime(date('r', $string));
                        case Tx_Extbase_Persistence_PropertyType::BOOLEAN:
                                return (boolean) $string;
                        default: