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_default_timezone_set() function.

 

出现这个问题,主要是因为没有在 php.ini 里面对时区进行设置造成的,解决方法是,修改 php.ini,加入:

date.timezone = "Asia/Chongqing"

 

重启 apache,搞掂! 

 

相关文章:

  • 2022-02-06
  • 2022-02-23
  • 2021-09-28
  • 2022-12-23
  • 2022-12-23
  • 2021-08-18
猜你喜欢
  • 2021-07-11
  • 2022-03-05
  • 2022-12-23
  • 2022-01-15
  • 2021-09-02
  • 2021-12-17
相关资源
相似解决方案