From 71ea2a179a8ef82f990ed08d689d878bdf024e2b Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Wed, 04 Jan 2012 10:15:19 -0500
Subject: [PATCH] - Fixed: FS#1936 - date(): It is not safe to rely on the system's timezone settings. - Added a timezone setting in config.inc.ohp file

---
 interface/lib/app.inc.php |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/interface/lib/app.inc.php b/interface/lib/app.inc.php
index 8903142..f6fcf21 100644
--- a/interface/lib/app.inc.php
+++ b/interface/lib/app.inc.php
@@ -31,6 +31,9 @@
 //* Enable gzip compression for the interface
 ob_start('ob_gzhandler');
 
+//* Set timezone
+if(isset($conf['timezone'])) date_default_timezone_set($conf['timezone']);
+
 //* Set error reporting level when we are not on a developer system
 if(DEVSYSTEM == 0) {
 	@ini_set('error_reporting', E_ALL & ~E_NOTICE & ~E_DEPRECATED);

--
Gitblit v1.9.1