[BUGFIX] Scheduler throws fatal error while saving an Extbase Task

While improving the code coverage, some source code
had to be adjusted to be mockable. This unfortunetly
braught a regression into the Task class.

Releases: 6.1
Resolves: #47352
Change-Id: I7da54e882d7880c8a816a0b795fa55e53a542885
Reviewed-on: https://review.typo3.org/20115
Reviewed-by: Alexander Schnitzler
Tested-by: Alexander Schnitzler
[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