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

后端 未结 5 1833
遇见更好的自我
遇见更好的自我 2021-02-19 20:03

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:23

    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).

提交回复
热议问题