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

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

    It works by setting

    date.timezone = Asia/Calcutta
    

    For details go to: PHP Documentation - Asia Timezones

提交回复
热议问题