[BUGFIX] Backend support for native DateTime
authorNico de Haen <mail@ndh-websolutions.de>
Mon, 15 Apr 2013 07:15:01 +0000 (09:15 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Tue, 23 Apr 2013 19:50:09 +0000 (21:50 +0200)
commit147c8f1ee5172b8ca0ebb4bda6b723dda5de0082
tree6ce65256c27de705bceb74943e7f51b983e62a13
parent3b6c44c838c446bc0230c235f16723795415c407
[BUGFIX] Backend support for native DateTime

The getPlainValue method returns a Unix timestamp for DateTime objects.
Thus it is not possible to store native DateTime objects in
database columns of type Date or DateTime.
This patch passes the columnMap as (optional) argument to
the getPlainValue method and uses the new getDateTimeStorageFormat
method to detect the correct format

Change-Id: I6f8cdd9d131f32e46bf9a99b9c4996d48188312e
Fixes: #47223
Releases:6.0,6.1
Reviewed-on: https://review.typo3.org/19979
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
typo3/sysext/extbase/Classes/Persistence/Generic/Backend.php
typo3/sysext/extbase/Tests/Unit/Persistence/Generic/BackendTest.php