From 7d90251e5ae42a7afbf87943e53a80744775335a Mon Sep 17 00:00:00 2001 From: fomichev Date: Wed, 26 Feb 2025 10:53:01 +0300 Subject: [PATCH] =?utf8?q?=D0=A4=D0=BE=D1=80=D0=BC=D0=B0=D1=82=20=D0=BD?= =?utf8?q?=D0=B0=D0=BD=D0=BE=D1=81=D0=B5=D0=BA=D1=83=D0=BD=D0=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/media/controllers/NotificationController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/erp24/media/controllers/NotificationController.php b/erp24/media/controllers/NotificationController.php index 7af6bb50..b36e951d 100644 --- a/erp24/media/controllers/NotificationController.php +++ b/erp24/media/controllers/NotificationController.php @@ -95,10 +95,14 @@ class NotificationController extends Controller switch ($eventType) { case 'PING': Yii::$app->response->statusCode = 200; + $date = new \DateTime("now", new \DateTimeZone("UTC")); + $micro = $date->format("u"); + $nanoseconds = $micro . "000"; + $time = $date->format("Y-m-d\TH:i:s") . "." . $nanoseconds . "Z"; return $this->asJson([ 'version' => '1.0.0', 'name' => 'БазаЦветов24', - 'time' => gmdate('Y-m-d\TH:i:s\Z'), + 'time' => $time, ]); case 'ORDER_CREATED': -- 2.39.5