Credits and time tracking.
This commit is contained in:
parent
e6bb255d1e
commit
1ebf1b930b
1 changed files with 2 additions and 2 deletions
|
|
@ -359,8 +359,8 @@ class ⌬
|
|||
$environmentService = $this->getContainer()->get(Services\EnvironmentService::class);
|
||||
if ($environmentService->isSet('TIMEZONE')) {
|
||||
date_default_timezone_set($environmentService->get('TIMEZONE'));
|
||||
} elseif (file_exists("/etc/timezone")) {
|
||||
date_default_timezone_set(trim(file_get_contents("/etc/timezone")));
|
||||
} elseif (file_exists('/etc/timezone')) {
|
||||
date_default_timezone_set(trim(file_get_contents('/etc/timezone')));
|
||||
} else {
|
||||
date_default_timezone_set(self::DEFAULT_TIMEZONE);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue