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:
@@ -146,7 +146,7 @@ class Logger implements LoggerInterface
|
|||||||
$this->name = $name;
|
$this->name = $name;
|
||||||
$this->handlers = $handlers;
|
$this->handlers = $handlers;
|
||||||
$this->processors = $processors;
|
$this->processors = $processors;
|
||||||
$this->timezone = new DateTimeZone($timezone ?: date_default_timezone_get() ?: 'UTC');
|
$this->timezone = $timezone ?: new DateTimeZone(date_default_timezone_get() ?: 'UTC');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user