Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonyThorpe committed Jun 7, 2024
1 parent f5bd4cd commit 7da1591
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Consumer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 7da1591

Please sign in to comment.