From 0d4230aa144fb639a729506d4b82c5ff332fc504 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Tue, 17 Jul 2012 02:06:37 -0500 Subject: [PATCH] modified: config.php --- config.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config.php b/config.php index d9c0034..178f81a 100755 --- a/config.php +++ b/config.php @@ -109,7 +109,9 @@ if(is_file('../../conk/.pass.php')) include('../../conk/.pass.php'); // The pass // 伺服器常態設定 if(!defined("PHP_SELF")) define("PHP_SELF", 'yotsubanome.php'); // このスクリプト名 // 主程式名 (若是修改了主程式名,請配合修改) //----define("TIME_ZONE", '-6'); // 時區設定 (GMT時區,參照 http://wwp.greenwichmeantime.com/ ) -date_default_timezone_set("America/Chicago"); +if(version_compare(PHP_VERSION, '5.0.0', '>=')){ // PHP5+ + date_default_timezone_set("America/Chicago"); +} $config['DATE_FORMAT'] = "Y/m/d"; // date format //++++$config['YOUBI'] = array(_T('sun'),_T('mon'),_T('tue'),_T('wed'),_T('thu'),_T('fri'),_T('sat')); // week format $config['TIME_FORMAT'] = 'H:i:s'; // time format -- 2.39.5