Bug #21538
closedWrong handling of date-fields
0%
Description
Regarding the handling of timezone issues I found the following information:
Since TYPO3 4.2 we changed the handling of timezone: client converts to
UTC before sending form data to server. Server converts from UTC to
server-timezone before storing into database.
Unfortunately the system does not what is stated above. The class.t3lib_tcemain.php gets a UTC value from the backendform and the javascript and substracts the timezone offset. This is logically wrong. The system must add the (positive or negative) timezone offset before storing the timestamp into the database.
On the other hand, when generating the form, the system in class.t3lib_tceforms.php must take the timestamp (which is in local timezone of the server) from the database and substract the timezone offset to send a UTC value to the backendform. Currently it doesn't.
Normally you will not notice this error. You will only note this error when you import external information into the database directly. The
(issue imported from #M12570)
Files
Updated by Mathias Gisch about 15 years ago
This bug is probably related to http://bugs.typo3.org/view.php?id=11026
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)?
Note this is a duplicate of #20389 where no response came in.
Updated by Alexander Opitz about 11 years ago
- Status changed from Needs Feedback to Closed
- Is Regression set to No
No feedback for over 90 days.