Revert "[BUGFIX] Object passed to date()" 47/25847/2
authorMarkus Klein <klein.t3@mfc-linz.at>
Sun, 1 Dec 2013 14:28:37 +0000 (15:28 +0100)
committerHelmut Hummel <helmut.hummel@typo3.org>
Mon, 2 Dec 2013 14:44:14 +0000 (15:44 +0100)
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
typo3/sysext/scheduler/class.tx_scheduler.php

index 6d47d09..50f59c7 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->getExecutionTime());
+                                               $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);
                                                $this->log($logMessage);
                                        }
                                }