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

Fix MongoDBFormatter

This commit is contained in:
Jordi Boggiano
2016-09-19 13:31:41 +02:00
parent 5558c3b26b
commit 5a501834c0

View File

@@ -102,6 +102,6 @@ class MongoDBFormatter implements FormatterInterface
protected function formatDate(\DateTimeInterface $value, $nestingLevel)
{
return new UTCDateTime((int) ($value->format('U.u') * 1000));
return new UTCDateTime((string) floor($value->format('U.u') * 1000));
}
}