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

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

    to remove this warning from your project

    There are 2 ways to do so...

    1) date_default_timezone_set('Asia/Kolkata'); include this file in your index.php file This will work only for your current project

    2) date_default_timezone_set('Asia/Kolkata'); or inlude this file in your php.ini file This will work for every project

    thnx :)

提交回复
热议问题