From 5600ba63c1f2cf659294c2248f3eb478bc190b6c Mon Sep 17 00:00:00 2001 From: haneul Date: Thu, 29 Apr 2010 02:42:43 +0000 Subject: [PATCH] #18864023 : set default time zone (for php5.3) git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7408 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- config/config.inc.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config/config.inc.php b/config/config.inc.php index fca9915f4..2aad45035 100644 --- a/config/config.inc.php +++ b/config/config.inc.php @@ -112,6 +112,14 @@ **/ require(_XE_PATH_.'config/func.inc.php'); + /** + * @brief Set Timezone as server time + **/ + if(version_compare(PHP_VERSION, '5.3.0') >= 0) + { + date_default_timezone_set(@date_default_timezone_get()); + } + if(__DEBUG__) define('__StartTime__', getMicroTime());