X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FQueue.php;h=8b9e801c3ffc616af346e94322b4be112bbcc74c;hb=0eafea86edd0acd4cc928332e0ef0e7dd18c3e03;hp=df8038c0dba1c6a58c1c1872664dd9e65ceff2a6;hpb=d70a20a46627b2edbc53f422bc9dd85dea8eea35;p=friendica.git diff --git a/src/Model/Queue.php b/src/Model/Queue.php index df8038c0db..8b9e801c3f 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]); }