Bug #21538 ยป timezone.patch
typo3_src-4.2.10/t3lib/class.t3lib_tceforms.php 2009-11-12 11:22:01.000000000 +0100 | ||
---|---|---|
$item.='<input type="checkbox" class="' . $this->formElStyleClassValue('check', TRUE) . ' alignToInputText" name="' . $PA['itemFormElName'] . '_cb" onclick="'.htmlspecialchars($cOnClick) . '" />';
|
||
}
|
||
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']);
|
typo3_src-4.2.10/t3lib/class.t3lib_tcemain.php 2009-11-12 11:23:44.000000000 +0100 | ||
---|---|---|
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':
|