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

Fix timezone param handling

This commit is contained in:
Jordi Boggiano
2016-06-25 16:46:33 +01:00
parent 8eaad3f972
commit 7efec0eeab

View File

@@ -146,7 +146,7 @@ class Logger implements LoggerInterface
$this->name = $name;
$this->handlers = $handlers;
$this->processors = $processors;
$this->timezone = new DateTimeZone($timezone ?: date_default_timezone_get() ?: 'UTC');
$this->timezone = $timezone ?: new DateTimeZone(date_default_timezone_get() ?: 'UTC');
}
/**