data(),该如何解决

WBOY
Release: 2016-06-13 13:29:18
Original
877 people have browsed it

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");

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template