Revert "[BUGFIX] Object passed to date()"


This reverts commit d361b2999c8ba8d1cdb218ead4f60ef1de9fe458

The change I6821bafa51372c50d8903c63d62ea44933bc12b3 does not
apply to 4.5 and 4.7, since $task is not an object in these
versions.

Change-Id: Ia2cd5287f3e128c90155c76fa360c58289d5a1ce
Releases: 4.5, 4.7
Resolves: #54120
Reviewed-on: https://review.typo3.org/25847
Reviewed-by: Philipp Gampe
Reviewed-by: Benny Schimmer
Tested-by: Benny Schimmer
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel