It is not safe to rely on the system's timezone setting. ワーニングが表示される - PHP

PHPのスクリプトを実行すると、
It is not safe to rely on the system's timezone setting. You are *required* to use the date.timezone setting or the date default timezone set() function. In case you uses any those methods and you are still getting this waring, you most likely misspelled the timezone identifier. ...
というワーニングが表示されることがあります。php.iniの
;date.timezone = 
の部分を
date.timezone = "Asia/Tokyo"
と変更するとワーニングが表示されなくなります。
著者
iPentecのプログラマー、最近はAIの積極的な活用にも取り組み中。
とっても恥ずかしがり。
最終更新日: 2024-01-06
作成日: 2012-07-21
iPentec all rights reserverd.