From 96c71e8c9ee54732a4773af26a9124c69bf08762 Mon Sep 17 00:00:00 2001 From: haneul Date: Tue, 11 May 2010 09:46:40 +0000 Subject: [PATCH] commit scripts (for compatibility 5.3.x) git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7437 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- common/script.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/script.php b/common/script.php index d05f2185f..b8c9853de 100644 --- a/common/script.php +++ b/common/script.php @@ -6,6 +6,10 @@ **/ if(!$_GET['t'] || !$_GET['l']) exit; +if(version_compare(PHP_VERSION, '5.3.0') >= 0) +{ + date_default_timezone_set(@date_default_timezone_get()); +} // set env $XE_PATH = substr(dirname(__FILE__),0,strlen('common')*-1);