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

后端 未结 5 1834
遇见更好的自我
遇见更好的自我 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:17

    As the warning says...

    use the date.timezone setting

    Just configure this with your timezone in php.ini, and all will be well for all apps on your server.

    EDIT If you are still having this problem after having configured this, you will probably find that your system uses more than one php.ini file. To find out which ini file is used for your web server, use phpinfo().

提交回复
热议问题