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:
@@ -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');
|
||||
|
Reference in New Issue
Block a user