From 86b212a4ff1acb35653f4d5ac6299050b9d333b7 Mon Sep 17 00:00:00 2001 From: Max Leonov Date: Thu, 29 Mar 2018 15:44:04 +0300 Subject: [PATCH] Return back to the original solution (#35) --- src/Handler/CloudWatch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Handler/CloudWatch.php b/src/Handler/CloudWatch.php index 064a7b8..b7d8703 100755 --- a/src/Handler/CloudWatch.php +++ b/src/Handler/CloudWatch.php @@ -210,7 +210,7 @@ private function formatRecord(array $entry) { return [ 'message' => $entry['formatted'], - 'timestamp' => floatval(substr_replace($entry['datetime']->format('Uu'), '.', -4, 0)) + 'timestamp' => $entry['datetime']->format('U.u') * 1000 ]; }