Fixed bug #8522: Datetime shifts on copy and localize (timezone related)
authorErnesto Baschny <ernst@cron-it.de>
Thu, 29 May 2008 08:57:15 +0000 (08:57 +0000)
committerErnesto Baschny <ernst@cron-it.de>
Thu, 29 May 2008 08:57:15 +0000 (08:57 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3736 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tcemain.php

index bcfd601..3e2d456 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-05-28  Ernesto Baschny  <ernst@cron-it.de>
+
+       * Fixed bug #8522: Datetime shifts on copy and localize (timezone related)
+
 2008-05-28  Benjamin Mack  <benni@typo3.org>
 
        * Fixed bug #8496: TCEforms: Help Icon is not in the docheader
index 386ade3..1ee21f0 100755 (executable)
@@ -1095,18 +1095,23 @@ class t3lib_TCEmain     {
                                                break;
                                                default:
                                                        if (isset($TCA[$table]['columns'][$field]))     {
-                                                                       // Evaluating the value.
-                                                               $res = $this->checkValue($table,$field,$fieldValue,$id,$status,$realPid,$tscPID);
-                                                               if (isset($res['value']))       {
-                                                                       $fieldArray[$field]=$res['value'];
-
-                                                                               // Add the value of the original record to the diff-storage content:
-                                                                       if ($this->updateModeL10NdiffData && $TCA[$table]['ctrl']['transOrigDiffSourceField'])  {
-                                                                               $originalLanguage_diffStorage[$field] = $originalLanguageRecord[$field];
-                                                                               $diffStorageFlag = TRUE;
+                                                               if ($this->dontProcessTransformations)  {
+                                                                               // In case of a copy, just copy original values over
+                                                                       $fieldArray[$field] = $fieldValue;
+                                                               } else  {
+                                                                               // Evaluating the value
+                                                                       $res = $this->checkValue($table,$field,$fieldValue,$id,$status,$realPid,$tscPID);
+                                                                       if (isset($res['value']))       {
+                                                                               $fieldArray[$field] = $res['value'];
+
                                                                        }
                                                                }
 
+                                                                       // Add the value of the original record to the diff-storage content:
+                                                               if ($this->updateModeL10NdiffData && $TCA[$table]['ctrl']['transOrigDiffSourceField'])  {
+                                                                       $originalLanguage_diffStorage[$field] = $originalLanguageRecord[$field];
+                                                                       $diffStorageFlag = TRUE;
+                                                               }
 
                                                                        // If autoversioning is happening we need to perform a nasty hack. The case is parallel to a similar hack inside checkValue_group_select_file().
                                                                        // When a copy or version is made of a record, a search is made for any RTEmagic* images in fields having the "images" soft reference parser applied. That should be true for RTE fields. If any are found they are duplicated to new names and the file reference in the bodytext is updated accordingly.