From: Michael Date: Thu, 8 Feb 2018 19:33:40 +0000 (+0000) Subject: Improved date time formula thing. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=70c31a6149041021c653308948eb60b07e453631;p=friendica.git Improved date time formula thing. --- 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]); }