我收到以下錯誤CakePHP中:CakePHP中的時區錯誤?
Warning (2): strtotime() [http://php.net/function.strtotime]: 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 [ROOT/cakephp/cake/libs/cache.php, line 570]
而且我收到通知:
Trying to get property of non-object in /htdocs/cakephp/cake/libs/cache/file.php on line 248 Fatal error: Call to a member function cd() on a non-object in /htdocs/cakephp/cake/libs/cache/file.php on line 248
我添加了這行date_default_timezone_set("America/Anchorage");
到[cake base directory]/libs/cache.php
試圖解決問題的頂部。 但錯誤仍然存在。
任何提示?
這是解決方案,不要浪費你的其他地方時間:d – Rifat
的確,這是取消註釋行... – Mortimer