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

---
 install/install.php |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/install/install.php b/install/install.php
index 46c313e..7e2fecc 100644
--- a/install/install.php
+++ b/install/install.php
@@ -104,7 +104,10 @@
 
 //** 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');

--
Gitblit v1.9.1