Warning: strftime() [function.strftime]: 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. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for '8.0/no DST' instead in

 

解决办法: 


 

1种.

查找php.ini里date.timezone有这么一行;date.timezone =将;去掉,改成date.timezone = PRC,就OK了(PRC:People's Republic of China中华人民共和国)

2种.

在代码中增加如下命令:<?php date_default_timezone_set('Asia/Chongqing');?>

其它说明:
date.timezone = 的值,大陆内地可用的有:Asia/Chongqing ,Asia/Chungking,Asia/Harbin,Asia/Shanghai ,Asia/Urumqi (依次为重庆哈尔滨上海乌鲁木齐

港台地区可用的有:Asia/Macao ,Asia/Macau,Asia/Hong_Kong ,Asia/Taipei (依次为澳门香港台北),不区分大小写。 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-05
  • 2021-04-13
  • 2021-07-21
猜你喜欢
  • 2021-11-24
  • 2022-12-23
  • 2021-09-24
  • 2022-12-23
  • 2021-12-04
  • 2022-02-24
相关资源
相似解决方案