如楼上,先设置当前时区,再取时间。date_default_timezone_set('Asia/Shanghai'); 
date('Y-m-d H:m:s');