Project

General

Profile

Bug #20088 ยป 10534.diff

Administrator Admin, 2010-06-17 16:55

View differences:

t3lib/class.t3lib_tceforms.php (working copy)
}
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']);
$PA['itemFormElValue'] += date('Z', $PA['itemFormElValue']) - 3600*date('I');
}
$PA['fieldChangeFunc'] = array_merge(array('typo3form.fieldGet'=>'typo3form.fieldGet('.$paramsList.');'), $PA['fieldChangeFunc']);
t3lib/class.t3lib_tcemain.php (working copy)
case 'datetime':
$value = intval($value);
if ($value>0 && !$this->dontProcessTransformations) {
$value -= date('Z', $value);
$value -= date('Z', $value) - 3600*date('I');
}
break;
case 'double2':
    (1-1/1)