[BUGFIX] Fix date conversion of neg timestamps 17/47117/2
authorDaniel Maier <dani-maier@gmx.de>
Sat, 5 Mar 2016 18:57:21 +0000 (19:57 +0100)
committerAndreas Wolf <andreas.wolf@typo3.org>
Sun, 6 Mar 2016 00:43:43 +0000 (01:43 +0100)
commita37f61614f1b5233401c80a0fe699b5a817ade76
treed2a70c0c72a4e11a4ccf8bab486933160003ce6c
parent8fb1179f6240c46a8240557b50f889da4ac1975f
[BUGFIX] Fix date conversion of neg timestamps

Date conversion of TCA fields with eval "date" or "datetime" is now also
handled correctly for dates before 1970, thus having a negative
timestamp. Timezone offset is now also applied for those negative
timestamps, in order to prevent erroneous data for dates before 1970.

Resolves: #73871
Releases: master, 7.6
Change-Id: I4de9911dec3de720992da137fe8afcb3ecbfdad7
Reviewed-on: https://review.typo3.org/47115
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Andreas Wolf <andreas.wolf@typo3.org>
Tested-by: Andreas Wolf <andreas.wolf@typo3.org>
(cherry picked from commit 7090d9b67735ba10ca3d2e024cb376b991e26366)
Reviewed-on: https://review.typo3.org/47117
typo3/sysext/backend/Classes/Form/Element/InputTextElement.php
typo3/sysext/backend/Tests/Unit/Form/Element/InputTextElementTest.php [new file with mode: 0644]
typo3/sysext/core/Classes/DataHandling/DataHandler.php
typo3/sysext/core/Tests/Unit/DataHandling/DataHandlerTest.php