PHP About time zone problem, PHP time zone problem
Recently in the process of learning PHP found PHP format timestamp 8 hours later than Beijing time, internet search found that the original time zone is not correct, the solution is:
1. Permanently modify changes in the php.ini file Data.timezone = PRC This is China time. The Apache service is restarted after the operation. 2, temporary modification before using the format input time, add Ini_set (' Date.timezone ', ' Asia/shanghai '); or Data_default_timezone_set (' PRC '); the//date_default_timezone_set () function sets the default time zone for all date/time functions used in the script.
http://www.bkjia.com/PHPjc/1036014.html www.bkjia.com true http://www.bkjia.com/PHPjc/1036014.html techarticle php About time zone problem, PHP time zone problem recently in the PHP process found PHP format timestamp 8 hours later than Beijing time, internet search found that the time zone is not correct, solve ...