因為case需要又裝了一次WP時,

install的過程中出現了.....

Warning: date() [function.date]: 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 'UTC' for '8.0/no DST' instead in C:\xampp\htdocs\csie\wp-admin\includes\schema.php on line 237

Warning: date() [function.date]: 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 'UTC' for '8.0/no DST' instead in C:\xampp\htdocs\csie\wp-admin\includes\upgrade.php on line 157

這個問題其實是PHP沒有設定時區

只要在php.ini裡頭修改date.timezone參數就可以了

; 修改前
;date.timezone=

; 修改後
date.timezone=Asia/Taipei
Categories: Wordpress