PDA

View Full Version : 本地安装后出现错误,求助!!


yahoo
2009-09-13, 08:23 AM
本帖最后由 bee 于 2009-8-2 20:09 编辑

小弟用 XAMPP 架数据库在本地安装
WordPress 2.8.2 中文增强版

安装后首页显示正常,但有以下错误提示:
Warning: 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 thedate_default_timezone_set() function. In case you used any of thosemethods and you are still getting this warning, you most likelymisspelled the timezone identifier. We selected 'UTC' for '8.0/no DST'instead in C:\xampp\htdocs\blog\wp-includes\functions.php on line 35

Warning: date() [function.date]:It is not safe to rely on the system's timezone settings. You are*required* to use the date.timezone setting or thedate_default_timezone_set() function. In case you used any of thosemethods and you are still getting this warning, you most likelymisspelled the timezone identifier. We selected 'UTC' for '8.0/no DST'instead in C:\xampp\htdocs\blog\wp-includes\functions.php on line 43

Warning: 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 thedate_default_timezone_set() function. In case you used any of thosemethods and you are still getting this warning, you most likelymisspelled the timezone identifier. We selected 'UTC' for '8.0/no DST'instead in C:\xampp\htdocs\blog\wp-includes\functions.php on line 35

Warning: date() [function.date]:It is not safe to rely on the system's timezone settings. You are*required* to use the date.timezone setting or thedate_default_timezone_set() function. In case you used any of thosemethods and you are still getting this warning, you most likelymisspelled the timezone identifier. We selected 'UTC' for '8.0/no DST'instead in C:\xampp\htdocs\blog\wp-includes\functions.php on line 43



小弟不知道这是怎么回事,请大侠指明一下,谢谢!!

topvip
2009-09-13, 08:24 AM
虽然过了一阵子了,不过我也是刚刚找到解决办法。

打开它所提示的php文件,在里面加上:date_default_timezone_set('UTC');
一般加在第一个*/后面就好了。

如:
* *return string Date formated by $dateformatstring or locale (if available).
*/
date_default_timezone_set('UTC');

他都提示了几个文件你就在几个文件里加。