Project

General

Profile

Actions

Bug #21538

closed

Wrong handling of date-fields

Added by Mathias Gisch over 14 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-11-12
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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

timezone.patch (1.62 KB) timezone.patch Administrator Admin, 2009-11-12 11:54

Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #20389: Wrong timezone handlingClosed2009-05-03

Actions
Actions #1

Updated by Mathias Gisch over 14 years ago

This bug is probably related to http://bugs.typo3.org/view.php?id=11026

Actions #2

Updated by Alexander Opitz almost 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.

Actions #3

Updated by Alexander Opitz over 10 years ago

  • Status changed from Needs Feedback to Closed
  • Is Regression set to No

No feedback for over 90 days.

Actions

Also available in: Atom PDF