]> 4ch.mooo.com Git - test.git/commitdiff
modified: config.php master
authorsparky4 <sparky4@4ch.irc.su>
Tue, 17 Jul 2012 07:06:37 +0000 (02:06 -0500)
committersparky4 <sparky4@4ch.irc.su>
Tue, 17 Jul 2012 07:06:37 +0000 (02:06 -0500)
config.php

index d9c0034b4de2da844b310e4dbdc50f3cdb8cd815..178f81ac18500842f2fa6de9d2c9b544c39f866f 100755 (executable)
@@ -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