Credits and time tracking.

This commit is contained in:
Greyscale 2020-05-24 18:03:18 +02:00
parent e6bb255d1e
commit 1ebf1b930b

View file

@ -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);
}