mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-06 05:07:36 +02:00
Fix MongoDBFormatter
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user