Issue Bug Closed

#19928Autocreation of records inserts wrong timestamps if user don't have access on that field

Sven Weiss 01/28/09, 09:35 updated 05/08/13, 12:04

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.