Commit 696af944 authored by Marius Cramer's avatar Marius Cramer
Browse files

Fix for installer timezone detection (Marc Schütz)

parent 7ae7e8f7
......@@ -812,6 +812,7 @@ function get_system_timezone() {
if(!$timezone && is_link('/etc/localtime')) {
$timezone = readlink('/etc/localtime');
$timezone = str_replace('/usr/share/zoneinfo/', '', $timezone);
$timezone = str_replace('..', '', $timezone);
if(substr($timezone, 0, 6) === 'posix/') $timezone = substr($timezone, 6);
} elseif(!$timezone) {
$hash = md5_file('/etc/localtime');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment