PHP Time Zone Settings Summary
The code is as follows: 1, modify the php.ini, found in the php.ini Data.timezone = Remove the front of it, and then set data.timezone = "Asia/shanghai"; then, from the start Apache; If this is not done, there is still a time error, Open the httpd.conf file in Apache, add Phpinidir "php.ini" 2, use the function ini_set (' Date.timezone ', ' Asia/shanghai ') in the program Code of PHP 5 or later. or Date_default_timezone_set (' Asia/shanghai '); Some common time zone identifier descriptions: asia/shanghai– Shanghai asia/chongqing– Chongqing asia/urumqi– Urumqi asia/hong_kong– Hong Kong asia/macao– Macau asia/taipei– Taipei asia/singapore– Singapore
http://www.bkjia.com/PHPjc/1056647.html www.bkjia.com true http://www.bkjia.com/PHPjc/1056647.html techarticle The PHP time Zone Setup Summary code is as follows:? Date_default_timezone_set (PRC), echo date (y-m-d h:i:s), 1, modify php.ini, find php.ini in Data.timezone = Remove the front of it, and then set ...