[BUGFIX] Object passed to date() 13/24713/2
authorPhilipp Gampe <philipp.gampe@typo3.org>
Sun, 13 Oct 2013 20:08:46 +0000 (22:08 +0200)
committerPhilipp Gampe <philipp.gampe@typo3.org>
Sun, 13 Oct 2013 20:10:17 +0000 (22:10 +0200)
Function date() expects a timestamp as second parameter, not
an object.

Resolves: #52759
Releases: 6.2, 6.1, 6.0, 4.7, 4.5
Change-Id: I6821bafa51372c50d8903c63d62ea44933bc12b3
Reviewed-on: https://review.typo3.org/24713
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
typo3/sysext/scheduler/class.tx_scheduler.php

index 50f59c7..6d47d09 100755 (executable)
@@ -113,7 +113,7 @@ class tx_scheduler implements t3lib_Singleton {
                                        if (($tstamp - $task) < $maxDuration) {
                                                $executions[] = $task;
                                        } else {
-                                               $logMessage = 'Removing logged execution, assuming that the process is dead. Execution of \'' . $row['classname'] . '\' (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 \'' . $row['classname'] . '\' (UID: ' . $row['uid']. ') was started at ' . date('Y-m-d H:i:s', $task->getExecutionTime());
                                                $this->log($logMessage);
                                        }
                                }