Skip to content
Snippets Groups Projects
Commit 180f2b99 authored by tbrehm's avatar tbrehm
Browse files

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

parent 41a74e15
No related branches found
No related tags found
No related merge requests found
...@@ -105,9 +105,15 @@ $inst->find_installed_apps(); ...@@ -105,9 +105,15 @@ $inst->find_installed_apps();
//** Select the language and set default timezone //** Select the language and set default timezone
$conf['language'] = $inst->simple_query('Select language', array('en','de'), 'en'); $conf['language'] = $inst->simple_query('Select language', array('en','de'), 'en');
exec('date +%Z', $tmp_out); exec('date +%z', $tmp_out);
$conf['timezone'] = $tmp_out[0]; $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_out);
unset($tmp_zone);
//* Set defaukt theme //* Set defaukt theme
$conf['theme'] = 'default'; $conf['theme'] = 'default';
......
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