1. PHP time configuration,
1. Open the PHP configuration file, php.ini, find the " ;date.timezone=" option under [date], and modify it to Asia/Hong_Kong Then restart the server;
2. Before using the time function, add the function " date_default_timezone_set("Asia/Hong_Kong"); "
3. Enter the local time function:
date("Y-m-d H:i:s")
Copy after login
http://www.bkjia.com/PHPjc/1073814.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1073814.htmlTechArticle1. PHP time configuration, 1. Open the PHP configuration file, php.ini, and find under [date] " ;date.timezone=" option, change it to Asia/Hong_Kong and then restart the server; 2. Before using the time function...