1

最近、Simplepie のフィードで次のエラーが表示されます。

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 フィードが提供されるブログ ソフトウェアをアップグレードしたことに関係している可能性があります。

このエラーを止めるために何を変更する必要があるのか​​ わかりません。

4

2 に答える 2

2

タイムゾーンを指定します。例えば:

date_default_timezone_set('Europe/Amsterdam');
于 2011-12-31T19:11:51.687 に答える
1

PHP構成(php.ini)で設定します。

または、実行時に次を使用します。

ini_set('date.timezone', 'Europe/Amsterdan');
于 2012-01-01T05:05:28.017 に答える