本文介绍了警告(2):strtotime() [function.strtotime]:依赖系统的时区设置是不安全的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Warning (2): strtotime() [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 'Asia/Calcutta' for '5.5/no DST' instead [COREcakelibscache.php, line 570]
Code | Context
$settings = array(
"engine" => "File",
"path" => "C:xampphtdocscakephpapp mpcachepersistent",
"prefix" => "cake_core_",
"lock" => false,
"serialize" => true,
"isWindows" => true,
"duration" => "+10 seconds",
"probability" => 100
)
strtotime - [internal], line ??
CacheEngine::init() - COREcakelibscache.php, line 570
FileEngine::init() - COREcakelibscachefile.php, line 81
Cache::_buildEngine() - COREcakelibscache.php, line 151
Cache::config() - COREcakelibscache.php, line 126
Configure::__loadBootstrap() - COREcakelibsconfigure.php, line 421
Configure::getInstance() - COREcakelibsconfigure.php, line 52
include - COREcakeootstrap.php, line 38
[main] - APPwebrootindex.php, line 76
Notice: Trying to get property of non-object in C:xampphtdocscakephpcakelibscachefile.php on line 248
Fatal error: Call to a member function cd() on a non-object in C:xampphtdocscakephpcakelibscachefile.php on line 248
推荐答案
/app/config/core.php:
/app/config/core.php:
/**
* If you are on PHP 5.3 uncomment this line and correct your server timezone
* to fix the date & time related errors.
*/
//date_default_timezone_set('UTC');
这篇关于警告(2):strtotime() [function.strtotime]:依赖系统的时区设置是不安全的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!