datetime refactoring

This commit is contained in:
Yuri Kuznetsov
2021-04-20 19:27:12 +03:00
parent 302833eb22
commit 5801c329b2
3 changed files with 16 additions and 10 deletions
+2 -2
View File
@@ -46,7 +46,7 @@ use Exception;
use DateTime;
/**
* Groups ocurred events into portions and sends them. A portion contains
* Groups occurred events into portions and sends them. A portion contains
* multiple events of the same webhook.
*/
class Queue
@@ -362,7 +362,7 @@ class Queue
$item->set([
'attempts' => $attempts,
'processAt' => $dt->format(DateTimeUtil::$systemDateTimeFormat),
'processAt' => $dt->format(DateTimeUtil::SYSTEM_DATE_TIME_FORMAT),
]);
if ($attempts >= $maxAttemptsNumber) {