![]() |
|
|||||||
| 服务器环境搭建 Windows,Linux,IIS,Apache等服务器配置、安全维护以及PHP和MYSQL运行环境讨论。 |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
#1
IP: 222.184.47.82
|
|||
|
|||
|
本帖最后由 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 小弟不知道这是怎么回事,请大侠指明一下,谢谢!! |
|
#2
IP: 222.184.47.82
|
|||
|
|||
|
虽然过了一阵子了,不过我也是刚刚找到解决办法。
打开它所提示的php文件,在里面加上:date_default_timezone_set('UTC'); 一般加在第一个*/后面就好了。 如: * *return string Date formated by $dateformatstring or locale (if available). */ date_default_timezone_set('UTC'); 他都提示了几个文件你就在几个文件里加。 |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|