2012-04-27 7 views
0

私はlighttpdを使って私の新しいウェブサーバにphp 5.3.8とTypo3 4.5.5をインストールしましたが、今私はこの警告を受けています。私のOSはSuse 12.2 64ビットです。このlighttpdとTypo3警告は何ですか?

FastCGI-stderr: PHP Warning: date() [<a href='function.date'>function.date</a>]: 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 'Europe/Berlin' for 'CEST/2.0/DST' instead in /htdocs/XXXX/t3lib/class.t3lib_div.php on line 5968 

答えて

2

LighttpdやTypo3とは関係ありません。PHPに関連しています。あなたのphp.iniでdefault timezoneを定義する必要が

date.timezone = "Europe/Paris" 

を(あなたのphp.iniを編集することができない場合)それ以外の場合は、あなたのコード内で直接それを行うことができます。

date_default_timezone_set("Europe/Paris"); 
0

PHP 5.3以降では、PHPのタイムゾーン値を明示的に設定する必要があります。 (以前のバージョンは、PHPに明示的に与えられていない場合、OSのタイムゾーン設定を使用するように戻されますが、5.3+はこれをやりません。)これを行う最も簡単な方法は、php.iniで設定することです。 good HOWTO here.

関連する問題