Stop Warning: date() [function.date]: from localhost

后端 未结 5 1377
半阙折子戏
半阙折子戏 2021-02-19 20:09

Warning: date() [function.date]: It is not safe to rely on the system\'s timezone settings. You are required to use the date.timezone setting or the date

5条回答
  •  逝去的感伤
    2021-02-19 20:29

    The reason it is happending on one server and not the other is the php.ini setting date.timezone=.

    You would still need to pick an actual value though. You assuredly don't have one. Or in the wrong php.ini version (there's one for CLI and one for mod_php).

提交回复
热议问题