From 44cee2bf88a777fe53791a6bddd6d647cab37a0e Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Tue, 13 Mar 2012 12:51:24 +0000
Subject: [PATCH] Implemented: FS#2125 - Installer: find out correct timezone

---
 install/install.php | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/install/install.php b/install/install.php
index 46c313e49f..7e2fecc262 100644
--- a/install/install.php
+++ b/install/install.php
@@ -104,7 +104,10 @@ $inst->find_installed_apps();
 
 //** Select the language and set default timezone
 $conf['language'] = $inst->simple_query('Select language', array('en','de'), 'en');
-$conf['timezone'] = 'UTC';
+
+exec('date +%Z', $tmp_out);
+$conf['timezone'] = $tmp_out[0];
+unset($tmp_out);
 
 //** Select installation mode
 $install_mode = $inst->simple_query('Installation mode', array('standard','expert'), 'standard');
-- 
GitLab