默認時區問題:Warning: date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in D:Xwwwecshopinstallincludeslib_installer.php on line 225
解決:方法1,将php.ini裏是date.timezone前的";"去(qù)掉,改成:date.timezone = PRC;
方法2,在頁頭使用 ini_set('date.timezone','Asia/Shanghai');
方法3,在頁頭使用date_default_timezone_set()設置 date_default_timezone_set('PRC'); //東八時區 echo date('Y-m-d H:i:s');