From 3898c94887443109c5567b8e6fb58d3f8047434c Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Thu, 13 Sep 2012 03:49:01 -0400 Subject: [PATCH] Fixed: FS#2418 - PHP: Timezone ID 'CEST' is invalid --- install/install.php | 11 +---------- 1 files changed, 1 insertions(+), 10 deletions(-) diff --git a/install/install.php b/install/install.php index 918526d..a3b5708 100644 --- a/install/install.php +++ b/install/install.php @@ -104,16 +104,7 @@ //** Select the language and set default timezone $conf['language'] = $inst->simple_query('Select language', array('en','de'), 'en'); - -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); +$conf['timezone'] = get_system_timezone(); //* Set defaukt theme $conf['theme'] = 'default'; -- Gitblit v1.9.1