Php 这是什么lighttpd和Typo3警告?

Php 这是什么lighttpd和Typo3警告?,php,lighttpd,typo3,Php,Lighttpd,Typo3,我用lighttpd在我的新Web服务器上安装了PHP5.3.8和Typo34.5.5,但现在我收到了这个警告。我的操作系统是Suse 12.2 64位 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* t

我用lighttpd在我的新Web服务器上安装了PHP5.3.8和Typo34.5.5,但现在我收到了这个警告。我的操作系统是Suse 12.2 64位

 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
FastCGI stderr:PHP警告:date()[]:依赖系统的时区设置是不安全的。您*必须*使用date.timezone设置或date\u default\u timezone\u set()函数。如果您使用了这些方法中的任何一种,但仍然收到此警告,则很可能是您拼错了时区标识符。我们在第5968行的/htdocs/XXXX/t3lib/class.t3lib_div.php中选择了“欧洲/柏林”作为“CEST/2.0/DST”

它与Lighttpd或Typo3无关,它与PHP有关

您必须在php.ini中定义一个:

date.timezone = "Europe/Paris"
date_default_timezone_set("Europe/Paris");
否则,您可以直接在代码中执行(如果您无法编辑php.ini):


从PHP5.3开始,必须为PHP显式设置时区值。(以前的版本会退回到使用操作系统的时区设置,如果没有明确指定给PHP,但5.3+不再这样做。)最简单的方法是在PHP.ini中设置它