Skip to content
Snippets Groups Projects
Commit 696af944 authored by Marius Cramer's avatar Marius Cramer
Browse files

Fix for installer timezone detection (Marc Schütz)

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