PHP5でdate関数使用時にエラーが発生する件

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 'Asia/Tokyo' for 'JST/9.0/no DST' instead in /hoge/hoge.php on line 24

ググれば1発。

5.1.0からphp.iniにタイムゾーンを設定する必要があるらしい。

date.timezone = Asia/Tokyo

を設定して、apacheリロード。


もしくは、phpファイルに
date_default_timezone_set('Asia/Tokyo');
を追加すればよろし。