mirror of
https://github.com/friendica/friendica
synced 2025-04-26 19:10:11 +00:00
Set Timezone to 'UTC' for every Logger (Develop)
This commit is contained in:
parent
2d263b08e3
commit
d03dedee63
2 changed files with 4 additions and 1 deletions
|
@ -135,6 +135,9 @@ class LoggerFactory
|
|||
switch ($config->get('system', 'logger_config', 'stream')) {
|
||||
|
||||
case 'monolog':
|
||||
$loggerTimeZone = new \DateTimeZone('UTC');
|
||||
Monolog\Logger::setTimezone($loggerTimeZone);
|
||||
|
||||
$logger = new Monolog\Logger($channel);
|
||||
$logger->pushProcessor(new Monolog\Processor\PsrLogMessageProcessor());
|
||||
$logger->pushProcessor(new Monolog\Processor\ProcessIdProcessor());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue