时间校验 方式一 <?php date_default_timezone_set('PRC'); echo "当前时间为:".date('Y-m-d H:i:s'); ?> 方式二 修改php.ini文件 找到date.timezone =”UTC”, 改为date.timezone =PRC <