The following problems were encountered when deploying PHP code:
Strict Standards: Date_default_timezone_get () [Function.date-default-timezone-get]: It isn't safe to rely on the system ' s timezone settings. Please use the Date.timezone setting, the TZ environment variable or the Date_default_timezone_set () function. In case you used any of those methods and you is still getting this warning, your most likely misspelled the timezone Iden Tifier. We selected ' UTC ' for ' 8.0/no DST ' instead inC:\AppServ\www\nipin\configs\config.php on line -
Strict Standards: Mktime () [Function.mktime]: It isn't safe to rely on the system ' s timezone settings. Please use the Date.timezone setting, the TZ environment variable or the Date_default_timezone_set () function. In case you used any of those methods and you is still getting this warning, your most likely misspelled the timezone Iden Tifier. We selected ' UTC ' for ' 8.0/no DST ' instead inC:\AppServ\www\nipin\configs\config.php on line -
Strict Standards: Mktime () [Function.mktime]: You should is using the time () function instead inC:\AppServ\www\nipin\configs\config.php on line -
The reason is that PHP to get GMT and Beijing time difference 8 hours, should take Beijing time.
Original above error, mainly reflected in a sentence:
$getime = date_default_timezone_get () = = ' UTC '? Mktime () +28800:mktime ();
There are two ways to solve this problem:
1, is to add this sentence directly to replace the above sentence, Date_default_timezone_set ("PRC"); directly set to background time.
2, in the php.ini file, set:;d Ate.timezone = Asia/shanghai or DATE.TIMEZONE=PRC
The above describes the Mktime () [Function.mktime]: It is not safe to rely on the systems timezone settings problem resolution, including aspects of the content, want to be interested in PHP tutorial friends helpful.