Jordi Boggiano 8 anni fa
parent
commit
3c1fc70c73
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/Monolog/Formatter/MongoDBFormatter.php

+ 1 - 1
src/Monolog/Formatter/MongoDBFormatter.php

@@ -117,7 +117,7 @@ class MongoDBFormatter implements FormatterInterface
 
     private function getMongoDbDateTime(\DateTimeInterface $value): UTCDateTime
     {
-        return new UTCDateTime((string) floor($value->format('U.u') * 1000));
+        return new UTCDateTime((int) (string) floor($value->format('U.u') * 1000));
     }
 
     /**