mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-02-22 19:06:37 +00:00
fixed detection of timezone on debian
removed add_new_switch temporarily, currently not supported
This commit is contained in:
@@ -63,7 +63,7 @@ if (is_link('/etc/localtime')) {
|
||||
// Ubuntu / Debian.
|
||||
$data = file_get_contents('/etc/timezone');
|
||||
if ($data) {
|
||||
$timezone = $data;
|
||||
$timezone = rtrim($data);
|
||||
}
|
||||
} elseif (file_exists('/etc/sysconfig/clock')) {
|
||||
// RHEL / CentOS
|
||||
|
||||
Reference in New Issue
Block a user