Commit 180f2b99 authored by tbrehm's avatar tbrehm

Fixed: FS#2418 - PHP: Timezone ID 'CEST' is invalid

parent 41a74e15
......@@ -105,9 +105,15 @@ $inst->find_installed_apps();
//** Select the language and set default timezone
$conf['language'] = $inst->simple_query('Select language', array('en','de'), 'en');
exec('date +%Z', $tmp_out);
$conf['timezone'] = $tmp_out[0];
exec('date +%z', $tmp_out);
$tmp_zone = intval($tmp_out[0]);
if(substr($tmp_out[0],0,1) == '+') {
$conf['timezone'] = 'Etc/GMT+'.$tmp_zone;
} else {
$conf['timezone'] = 'Etc/GMT-'.$tmp_zone;
}
unset($tmp_out);
unset($tmp_zone);
//* Set defaukt theme
$conf['theme'] = 'default';
......
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