今天我注意到unix时间:
//on my local or any web servers that i work on Brazil
echo strtotime('2016-07-04'); //return 1467601200
//on phptester.net or any other like it
echo strtotime('2016-07-04'); //return 1467590400
这是怎么回事?它不应该是相等的?
如果您浏览一下PHP时间文档(http://php.net/manual/en/function.time.php),您将看到PHP时间计算从Unix纪元(1970年1月1日00:00:00 GMT)开始的秒数。一个时区的第0秒和另一个时区的第0秒是不一样的,并且不同的php实例可能使用不同的时区。