1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-05 20:57:36 +02:00

Fix datetime creation with microseconds

This commit is contained in:
Jordi Boggiano
2012-02-23 11:19:10 +01:00
parent 208939b329
commit d784755dcb

View File

@@ -168,7 +168,7 @@ class Logger
'level' => $level,
'level_name' => self::getLevelName($level),
'channel' => $this->name,
'datetime' => \DateTime::createFromFormat('U.u', microtime(true)),
'datetime' => \DateTime::createFromFormat('0.u00 U', microtime()),
'extra' => array(),
);
// check if any message will handle this message