[BUGFIX] Fix date conversion of neg timestamps 15/47115/2
authorDaniel Maier <dani-maier@gmx.de>
Sat, 5 Mar 2016 18:57:21 +0000 (19:57 +0100)
committerAndreas Wolf <andreas.wolf@typo3.org>
Sat, 5 Mar 2016 19:21:10 +0000 (20:21 +0100)
commit7090d9b67735ba10ca3d2e024cb376b991e26366
tree6ccdda53fa9a7cc591a7ae9e24c926e515aea90a
parent18fa6a9b573b82497edd6542389de002e8d94d3a
[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>
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