yuandan 发表于 2019-1-10 13:19:00

php5.3 + cacti 出现 date_default_timezone_set() function 错误提示的解决方法

  Warning: strtotime() [function.strtotime]: 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 'Asia/Chongqing' for 'CST/8.0/no DST' instead in/usr/local/apache/htdocs/cacti/include/global_constants.php on line 165
  
  http://blog.运维网.com/attachment/201305/090612674.jpg
  
  解决方法:
  # vim/usr/local/apache/htdocs/cacti/include/global_constants.php
  添加如下内容:
  date_default_timezone_set('Asia/Chongqing');
  重启httpd   刷新页面   问题解决.



页: [1]
查看完整版本: php5.3 + cacti 出现 date_default_timezone_set() function 错误提示的解决方法