【wordpress】プラグインcounterziiの設定をエラーが出ないように修正する

スポンサーリンク

以前アクセスカウンタをつけてみましたという記事で、プラグインcounterziiについて
・そのままだと日付の変更が午前9時になっている。これを午前0時にするにはwp-settings.phpを編集する。33行目付近。

// Set default timezone in PHP 5.
if ( function_exists( 'date_default_timezone_set' ) )
date_default_timezone_set( 'UTC' );
date_default_timezone_set( 'UTC+9' );

と書きましたが、この設定でいまのところ動くのですがPHP 5.3.3だとapacheのエラーログにエラーが出ているので、下のように修正した方が良さそうです

date_default_timezone_set( 'Asia/Tokyo' );

apacheにはこんなエラーが出てました。IPは伏せてます。

[Sun Aug 14 04:08:07 2011] [error] [client XXX.XXX.XXX.XXX] PHP Warning:  strtotime(): 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_timez
one_set() function. In case you used any of those methods and you are still getting this warning, you most lik
ely misspelled the timezone identifier.

date_default_timezone_set() functionのidentifier(識別子)を間違って書いてないですか?と原因までエラーメッセージに出てます。apache親切だなぁ。