diff -urNp typo3_src-4.2.10_orig/t3lib/class.t3lib_tceforms.php typo3_src-4.2.10/t3lib/class.t3lib_tceforms.php --- typo3_src-4.2.10_orig/t3lib/class.t3lib_tceforms.php 2009-10-22 14:14:56.000000000 +0200 +++ typo3_src-4.2.10/t3lib/class.t3lib_tceforms.php 2009-11-12 11:22:01.000000000 +0100 @@ -1115,8 +1115,8 @@ class t3lib_TCEforms { $item.=''; } if ((in_array('date',$evalList) || in_array('datetime',$evalList)) && $PA['itemFormElValue']>0){ - // Add server timezone offset to UTC to our stored date - $PA['itemFormElValue'] += date('Z', $PA['itemFormElValue']); + // Remove server timezone offset to UTC from our stored date + $PA['itemFormElValue'] -= date('Z', $PA['itemFormElValue']); } $PA['fieldChangeFunc'] = array_merge(array('typo3form.fieldGet'=>'typo3form.fieldGet('.$paramsList.');'), $PA['fieldChangeFunc']); diff -urNp typo3_src-4.2.10_orig/t3lib/class.t3lib_tcemain.php typo3_src-4.2.10/t3lib/class.t3lib_tcemain.php --- typo3_src-4.2.10_orig/t3lib/class.t3lib_tcemain.php 2009-10-22 14:14:56.000000000 +0200 +++ typo3_src-4.2.10/t3lib/class.t3lib_tcemain.php 2009-11-12 11:23:44.000000000 +0100 @@ -2016,7 +2016,8 @@ class t3lib_TCEmain { case 'datetime': $value = intval($value); if ($value>0 && !$this->dontProcessTransformations) { - $value -= date('Z', $value); + // Add timezone offset to UTC to the input value + $value += date('Z', $value); } break; case 'double2':