Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
499 views
in Technique[技术] by (71.8m points)

cakephp - Warning (2): strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings

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:xampphtdocscakephpappmpcachepersistent",
 "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
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

/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');

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...