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

后端 未结 5 1375
半阙折子戏
半阙折子戏 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:28

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

提交回复
热议问题