From 7da159159486dc405359d0fad127d33166ed8256 Mon Sep 17 00:00:00 2001 From: Antony Thorpe <1023740+AntonyThorpe@users.noreply.github.com> Date: Fri, 7 Jun 2024 18:08:16 +1200 Subject: [PATCH] Update --- src/Consumer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Consumer.php b/src/Consumer.php index 06b0ed5..58809a8 100644 --- a/src/Consumer.php +++ b/src/Consumer.php @@ -38,7 +38,7 @@ public static function convertUnix2UTC(string $data): string $date = new DateTime(); if (strlen($string) > 10) { - $date->setTimestamp(intval($string)/1000); // Unix date with milliseconds + $date->setTimestamp(intval($string/1000)); // Unix date with milliseconds } else { $date->setTimestamp(intval($string)); }