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)
Updated by Sven Weiss almost 16 years ago
Fast fix for everyone.
Simply remove this 3 lines or comment out:
// if ($value>0 && !$this->dontProcessTransformations) {
// $value -= date('Z', $value);
// }
Updated by Alexander Opitz over 11 years ago
- Status changed from New to Needs Feedback
- Target version deleted (
0)
The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?
Updated by Sven Weiss over 11 years ago
Good question! I didn't recognize it anymore. I think ticket can be closed.
Updated by Thorsten Kahler over 11 years ago
- Status changed from Needs Feedback to Closed
Closed on author request.