Bug #18474 » bug-7897-tz-dst.diff
t3lib/class.t3lib_tceforms.php (Arbeitskopie) | ||
---|---|---|
$cOnClick = 'typo3form.fieldGet('.$paramsList.',1,\''.$checkSetValue.'\');'.implode('',$PA['fieldChangeFunc']);
|
||
$item.='<input type="checkbox"'.$this->insertDefStyle('check').' name="'.$PA['itemFormElName'].'_cb" onclick="'.htmlspecialchars($cOnClick).'" />';
|
||
}
|
||
if((in_array('date',$evalList) || in_array('datetime',$evalList)) && $PA['itemFormElValue']>0){
|
||
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'] += date('Z', $PA['itemFormElValue']);
|
||
}
|
||
|
||
$PA['fieldChangeFunc'] = array_merge(array('typo3form.fieldGet'=>'typo3form.fieldGet('.$paramsList.');'), $PA['fieldChangeFunc']);
|
t3lib/jsfunc.evalfield.js (Arbeitskopie) | ||
---|---|---|
this.lastYear = this.getYear(today);
|
||
this.lastDate = this.getDate(today);
|
||
this.lastTime = this.getTimestamp(today);
|
||
this.refDate = today;
|
||
this.isInString = '';
|
||
this.USmode = 0;
|
||
}
|
||
... | ... | |
default:
|
||
var index = value.indexOf(' ');
|
||
if (index!=-1) {
|
||
this.lastTime = this.input("date",value.substr(index,value.length)) + this.input("time",value.substr(0,index));
|
||
var dateVal = this.input("date",value.substr(index,value.length));
|
||
// set refDate so that evalFunc_input on time will work with correct DST information
|
||
this.refDate = new Date(dateVal*1000);
|
||
this.lastTime = dateVal + this.input("time",value.substr(0,index));
|
||
}
|
||
}
|
||
this.lastTime+=add*24*60*60;
|
||
... | ... | |
var hour = (values.values[1])?this.parseInt(values.values[1]):today.getUTCHours();
|
||
if (hour > 23) {hour=23;}
|
||
|
||
var theTime = new Date(this.getYear(today), today.getUTCMonth(), today.getUTCDate(), hour, min, ((type=="timesec")?sec:0));
|
||
var theTime = new Date(this.getYear(this.refDate), this.refDate.getUTCMonth(), this.refDate.getUTCDate(), hour, min, ((type=="timesec")?sec:0));
|
||
|
||
this.lastTime = this.getTimestamp(theTime);
|
||
theTime.setTime((this.lastTime - theTime.getTimezoneOffset()*60)*1000);
|
t3lib/class.t3lib_tcemain.php (Arbeitskopie) | ||
---|---|---|
case 'datetime':
|
||
$value = intval($value);
|
||
if ($value>0) {
|
||
$value -= date('Z');
|
||
$value -= date('Z', $value);
|
||
}
|
||
break;
|
||
case 'double2':
|
- « Previous
- 1
- 2
- Next »