[BUGFIX] Object passed to date() 07/24707/3
authorXavier Perseguers <xavier@typo3.org>
Sun, 13 Oct 2013 17:56:12 +0000 (19:56 +0200)
committerPhilipp Gampe <philipp.gampe@typo3.org>
Sun, 13 Oct 2013 20:02:33 +0000 (22:02 +0200)
Function date() expects a timestamp as second parameter, not
an object.

Fixes: #52759
Releases: 6.2, 6.1, 6.0, 4.7, 4.5
Change-Id: I6821bafa51372c50d8903c63d62ea44933bc12b3
Reviewed-on: https://review.typo3.org/24707
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
typo3/sysext/scheduler/Classes/Scheduler.php

index 59abb63..839bdf2 100644 (file)
@@ -107,7 +107,7 @@ class Scheduler implements \TYPO3\CMS\Core\SingletonInterface {
                                                $executions[] = $task;
                                        } else {
                                                $task = unserialize($row['serialized_task_object']);
-                                               $logMessage = 'Removing logged execution, assuming that the process is dead. Execution of \'' . get_class($task) . '\' (UID: ' . $row['uid'] . ') was started at ' . date('Y-m-d H:i:s', $task);
+                                               $logMessage = 'Removing logged execution, assuming that the process is dead. Execution of \'' . get_class($task) . '\' (UID: ' . $row['uid'] . ') was started at ' . date('Y-m-d H:i:s', $task->getExecutionTime());
                                                $this->log($logMessage);
                                        }
                                }