Home > Backend Development > PHP Tutorial > 请问怎么修改header头的date信息呢,我nginx php5.4

请问怎么修改header头的date信息呢,我nginx php5.4

WBOY
Release: 2016-06-23 13:30:44
Original
1688 people have browsed it

我网站的date时间老是跟实际时间相差8小时,,,怎么也修改不过来.所以前来请教.谢谢


回复讨论(解决方案)

用 date_default_timezone_set 矫正一下时区

用 date_default_timezone_set 矫正一下时区



忘记说了,php时间 服务器时间都是正确的..就header 时间不正确....

PRC

进入php.ini,设定date.timezone = RPC可解决问题

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