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

Use non-locale aware version of the float formatter, fixes #65

This commit is contained in:
Jordi Boggiano
2012-04-22 18:33:26 +02:00
parent 5c97153efe
commit a6c24f983a
2 changed files with 2 additions and 2 deletions

View File

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

View File

@@ -24,7 +24,7 @@ class TestCase extends \PHPUnit_Framework_TestCase
'level' => $level,
'level_name' => Logger::getLevelName($level),
'channel' => 'test',
'datetime' => new \DateTime(),
'datetime' => \DateTime::createFromFormat('U.u', sprintf('%.6F', microtime(true))),
'extra' => array(),
);
}