From: Seb35 Date: Thu, 2 Feb 2017 12:24:24 +0000 (+0100) Subject: Fix timestamp format in maintenance/manageJobs.php X-Git-Tag: 1.31.0-rc.0~4061^2 X-Git-Url: http://git.cyclocoop.org/%22%2C%20generer_url_ecrire%28?a=commitdiff_plain;h=5eb9337b3136af19d87c0e8c0c1a4abefbbdf3be;p=lhc%2Fweb%2Fwiklou.git Fix timestamp format in maintenance/manageJobs.php Follow-up of Ib56cf57e56f03ce6f1c4b52e3e36f228413c1056, Job::getQueuedTimestamp() returns a UNIX timestamp, so use the same here for comparison. Change-Id: I595f962b71337fc9021963c55ee7dd2443149a46 --- diff --git a/maintenance/manageJobs.php b/maintenance/manageJobs.php index 9585ed82b6..bbedf0c646 100644 --- a/maintenance/manageJobs.php +++ b/maintenance/manageJobs.php @@ -75,7 +75,7 @@ class ManageJobs extends Maintenance { $skipped = 0; foreach ( $queue->getAllAbandonedJobs() as $job ) { /** @var Job $job */ - if ( $job->getQueuedTimestamp() < $lastRepushTime ) { + if ( $job->getQueuedTimestamp() < wfTimestamp( TS_UNIX, $lastRepushTime ) ) { ++$skipped; continue; // already re-pushed in prior round }