Home >Backend Development >PHP Tutorial > PHP初记|设置时区

PHP初记|设置时区

WBOY
WBOYOriginal
2016-06-13 13:08:18825browse

PHP小记|设置时区

在页头使用date_default_timezone_set()设置我的默认时区为北京时间

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