From 70c31a6149041021c653308948eb60b07e453631 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 8 Feb 2018 19:33:40 +0000 Subject: [PATCH] Improved date time formula thing. --- src/Model/Queue.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Queue.php b/src/Model/Queue.php index df8038c0db..4a29c8aa4a 100644 --- a/src/Model/Queue.php +++ b/src/Model/Queue.php @@ -32,7 +32,7 @@ class Queue // Calculate the delay until the next trial $delay = (($retrial + 3) ** 4) + (rand(1, 30) * ($retrial + 1)); - $next = DateTimeFormat::utc(date('c', time() + $delay)); + $next = DateTimeFormat::utc('now ' . $delay . ' seconds'); dba::update('queue', ['last' => DateTimeFormat::utcNow(), 'retrial' => $retrial + 1, 'next' => $next], ['id' => $id]); } -- 2.39.5