Web Artisan Blog - ウェブ アルチザン ブログ

date関数で”Asia/Tokyo・・”なんかのエラーが出る件:PHP5.1.0以降

PHP

2006年02月23日

今まで動いてたのに。。
なんて事はプログラミングの世界ではよくありますが、今回はphpにおける、そんなネタ。

phpのdate関数を発行する際、タイムゾーンを設定していないと下記のようなエラーが出ます。

Strict Standards: date() [function.date]: It is not safe to rely on the systems timezone settings, please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. We now use 'Asia/Tokyo' for 'JST' in



>続きを読む・・・date関数で”Asia/Tokyo・・”なんかのエラーが出る件:PHP5.1.0以降
1 Comment  1 Trackback  Permalink