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

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

WBOY
WBOYOriginal
2016-06-06 20:50:221224browse

我试过以下两种设置:

设置1:

<code>data.timezone = Asia/Shanghai
</code>

设置2:

<code>data.timezone = PRC
</code>

php文件也很简单,如下:

<code><?php phpinfo(); ?>
</code>

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

备注:

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

回复内容:

我试过以下两种设置:

设置1:

<code>data.timezone = Asia/Shanghai
</code>

设置2:

<code>data.timezone = PRC
</code>

php文件也很简单,如下:

<code><?php phpinfo(); ?>
</code>

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

备注:

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

date 不是 data

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