第十五章 php時區報錯 We selected the timezone 'UTC'

XIANFANG發表於2014-11-13
Warning: phpinfo(): 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 /mnt/web/index.php on line 2
設定:
1.設定系統-系統-時區為自己的地區,例如Asia/ShangHai
2.安裝軟體包 zoneinfo-asia,其他地區請將asia改一下
另外,並不需要修改PHP.INI檔案的 date.timezone,預設也是註釋掉的。
我的是703n openwrt 12.09-beta

本文部落格:http://www.cnblogs.com/xianfangloveyangmei/ 自己的筆記

相關文章