[function.strtotime] 错误对策

在php5.3.0下安装wordpress会出现以下错误,盖因时区所未设定方引起。

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……

解决方法一:
在php.ini里加入:
date.timezone = “Asia/Shanghai”

解决方法二:
在 /wp/wp-includes/functions.php 里相对应函数里加入:
date_default_timezone_set('
Asia/Shanghai');

解决方法三:
在 wp-config.php 里加入:
date_default_timezone_set('
Asia/Shanghai');

posted @ 2009-11-15 20:39  小牛大牛  阅读(1041)  评论(0编辑  收藏  举报
咱这社会,努力不一定会有回报,但要是不努力,您可就得空虚.您说这讨老婆,生孩子,买房子,购车子,哪样不得自己动手,别人动手咱也不能放心啊,您说是不是这么个理儿?....