Home >Backend Development >PHP Tutorial > data(),该如何解决

data(),该如何解决

WBOY
WBOYOriginal
2016-06-13 13:29:18925browse

data()
echo date("Y-m-d H:m:s");
?>
照理说现在应该是2012-05-26-21-17的。。为啥是下面时间?!难道是时区错误?再哪修改时区!
2012-05-26 13:05:32

------解决方案--------------------
8个时区

开头加上

date_default_timezone_set("PRC");

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn