1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-10 15:14:14 +02:00

Change timezone to be per-instance and not global

This commit is contained in:
Jordi Boggiano
2015-10-09 19:07:08 +01:00
parent d381b20b87
commit 6505e02fd3
3 changed files with 29 additions and 18 deletions

View File

@@ -491,8 +491,8 @@ class LoggerTest extends \PHPUnit_Framework_TestCase
*/
public function testSetTimezone($tz)
{
Logger::setTimezone($tz);
$logger = new Logger('foo');
$logger->setTimezone($tz);
$handler = new TestHandler;
$logger->pushHandler($handler);
$logger->info('test');