1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-06 13:16:39 +02:00

Fix mongodb tests

This commit is contained in:
Jordi Boggiano
2017-06-18 23:58:24 +02:00
parent b76bc133db
commit 3c1fc70c73

View File

@@ -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));
}
/**