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

本文章摘自http://wordpress.org/support/topic/php-530-amp-wp-28-it-is-not-safe-to-rely-on-the-systems-timezone

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 the date_default_timezone_set() function.

Another way to approach this is to let php know what your time zone is. You can edit your php.ini file and put in the following line:

date.timezone = "America/Anchorage"

You can find valid time zone strings at http://nl3.php.net/manual/en/timezones.php

posted @ 2011-07-21 09:45  google4y  阅读(881)  评论(0编辑  收藏  举报
不在家,就在公司,不在公司,就在去公司的路上,無家無根,如風如萍,只有漂