fixed detection of timezone on debian

removed add_new_switch temporarily, currently not supported
This commit is contained in:
Matthew Vale
2015-11-26 13:20:04 +00:00
parent 2fbd4e2aae
commit ebadb3b09f
2 changed files with 1 additions and 16 deletions

View File

@@ -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