2011-05-10 39 views
1

我收到許多從PHP 5.2.9升級到PHP 5.3.0時看到的錯誤,但奇怪的是,錯誤顯示爲引用$ _GET變量的結果,而不是與時區設置有關的任何事情。

這裏的錯誤:

Warning: date_default_timezone_get(): 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.

有其他人看到同樣的事情,並找到一種方法來解決這個問題,而不只是改變error_reporting級別?

謝謝。

+3

這個錯誤是如何體現?一個例子會很好... – 2011-05-10 14:07:19

+0

我想看到'錯誤'。 – 2011-05-10 14:09:08

+0

你也說它與時區無關,然後將其標記爲時區? – 2011-05-10 14:10:05

回答

0

我不得不使用 「PHP版本5.5.3-1ubuntu2.1」 小寫:

date.timezone = 「美國/紐約」

相關問題