解决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

你可能感兴趣的:(strtotime)