You are *required* to use the date.timezone setting or the date_default_timezone_set() function.


 

Apacheのエラーログが膨らんでいたので、なんぞとログを見ると標題のエラーが。

PHPのタイムゾーン設定がされていないと発生することがあるらしい。

php.iniのdate.timezoneに設定を追加。
サーバはAWSのUS-West Regionで運用しているため、タイムゾーンは西海岸のものを設定してみた。

date.timezone = America/Los_Angeles

参考:
http://www.phpmanual.jp/timezones.america.html

This entry was posted in PHP. Bookmark the permalink. Both comments and trackbacks are currently closed.

関連記事