1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-02-24 06:52:34 +01:00

properly convert from a float to a string, including the digits after the decimal to please createFromFormat

This commit is contained in:
Matt Lehner 2012-02-24 18:10:53 -05:00
parent d784755dcb
commit 83d23c4024

View File

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