Bug #19928
closedAutocreation of records inserts wrong timestamps if user don't have access on that field
0%
Description
I found this bug because I am beginning with workspaces and don't want that some persons edit the starttime or endtime of records. So I don't give them access to that field.
Now if the user is in his workspace and saves the record, the date and datetime fields get wrong value by autocreation of the new record because of "timezone" bug.
I completly debugged it and found the lines to changed:
class.t3lib_tcemain.php
function checkValue_input_Eval($value,$evalArray,$is_in) {
...
case 'date':
case 'datetime':
$value = intval($value);
if ($value>0 && !$this->dontProcessTransformations) {
$value -= date('Z', $value);
}
break;
...
Here the field gets timestamp-3600 seconds because the use of "date" function here I think is the wrong way.
(issue imported from #M10288)