PHP date()获取系统时间不对

使用date_default_timezone_set(”)方法;

<?php
error_reporting(0);
date_default_timezone_set('PRC'); 
header("Content-type: text/html; charset=utf-8");
$pay_memberid = "10002";   //商户ID
$pay_orderid = 'E'.date("Ymdhis").rand(100000,999999);    //订单号
原文地址:https://www.cnblogs.com/php-qiuwei/p/8662779.html