mirror of
https://github.com/friendica/friendica
synced 2025-01-30 17:39:47 +00:00
Inject AppHelper into App::loadDefaultTimezone() via parameter
This commit is contained in:
parent
7cc37ff2cb
commit
15446f35a5
1 changed files with 3 additions and 3 deletions
|
@ -312,7 +312,7 @@ class App
|
|||
$viewDefinition->load(true);
|
||||
}
|
||||
|
||||
$this->loadDefaultTimezone($config);
|
||||
$this->loadDefaultTimezone($config, $appHelper);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -322,7 +322,7 @@ class App
|
|||
*
|
||||
* @global string $default_timezone
|
||||
*/
|
||||
private function loadDefaultTimezone(IManageConfigValues $config)
|
||||
private function loadDefaultTimezone(IManageConfigValues $config, AppHelper $appHelper)
|
||||
{
|
||||
if ($config->get('system', 'default_timezone')) {
|
||||
$timezone = $config->get('system', 'default_timezone', 'UTC');
|
||||
|
@ -331,7 +331,7 @@ class App
|
|||
$timezone = $default_timezone ?? '' ?: 'UTC';
|
||||
}
|
||||
|
||||
$this->appHelper->setTimeZone($timezone);
|
||||
$appHelper->setTimeZone($timezone);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue