最近,我在Simplepie的Feed中遇到以下错误:
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 'GMT/0.0/no DST' instead in /home/xxxxx/public_html/xxxxxx.xxx/www/php/simplepie.inc on line 3636`
现在这可能与我的域最近更改服务器和/或同时升级提供RSS源的博客软件有关。
我不确定我需要更改什么来阻止此错误。
答案 0 :(得分:2)
指定时区。例如:
date_default_timezone_set('Europe/Amsterdam');
答案 1 :(得分:1)