Home > Backend Development > PHP Tutorial > 为什么设置了data.timezone,但系统还是会报错呢?

为什么设置了data.timezone,但系统还是会报错呢?

WBOY
Release: 2016-06-06 20:50:22
Original
1312 people have browsed it

我试过以下两种设置:

设置1:

<code>data.timezone = Asia/Shanghai
</code>
Copy after login
Copy after login

设置2:

<code>data.timezone = PRC
</code>
Copy after login
Copy after login

php文件也很简单,如下:

<code><?php phpinfo(); ?>
</code>
Copy after login
Copy after login

在data那个位置还是会报错,为什么呢? 为什么设置了data.timezone,但系统还是会报错呢?

备注:

  1. php通过php-fpm重启
  2. 已确定重启成功

回复内容:

我试过以下两种设置:

设置1:

<code>data.timezone = Asia/Shanghai
</code>
Copy after login
Copy after login

设置2:

<code>data.timezone = PRC
</code>
Copy after login
Copy after login

php文件也很简单,如下:

<code><?php phpinfo(); ?>
</code>
Copy after login
Copy after login

在data那个位置还是会报错,为什么呢? 为什么设置了data.timezone,但系统还是会报错呢?

备注:

  1. php通过php-fpm重启
  2. 已确定重启成功

date 不是 data

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