2010年11月29日 星期一

[PHP] 解決 date(): It is not safe to rely on the system's timezone settings

Message:  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.

解決方法:

修改php.ini, 加上預設timezone, 重新啟動Apache即可

date.timezone = "Asia/Taipei"
Related Posts Plugin for WordPress, Blogger...