From 2dd6746808c19821f5d16ddc2e214c1701019daa Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Fri, 06 Jan 2012 06:42:03 -0500
Subject: [PATCH] - Improvded timezone setting.

---
 install/update.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/install/update.php b/install/update.php
index 548e114..8786658 100644
--- a/install/update.php
+++ b/install/update.php
@@ -97,7 +97,7 @@
 $conf['language'] = $conf_old['language'];
 if($conf['language'] == '{language}') $conf['language'] = 'en';
 $conf['timezone'] = $conf_old['timezone'];
-if($conf['timezone'] == '{timezone}') $conf['timezone'] = 'UTC';
+if($conf['timezone'] == '{timezone}' or trim($conf['timezone']) == '') $conf['timezone'] = 'UTC';
 
 if(isset($conf_old["dbmaster_host"])) $conf["mysql"]["master_host"] = $conf_old["dbmaster_host"];
 if(isset($conf_old["dbmaster_database"])) $conf["mysql"]["master_database"] = $conf_old["dbmaster_database"];

--
Gitblit v1.9.1