论坛首页 Java企业应用论坛

关于php 从 5.2 升级到 5.4 后 mantis 报错的问题

浏览 1759 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2014-06-26  
PHP


mantis 版本 1.1.8,升级 php 版本后页面报错:
SYSTEM WARNING: 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. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.

解决方法也很简单,修改配置文件 php.ini 设置时区部分:
[Date]
; Defines the default timezone used by the date functions
date.timezone = Asia/Shanghai

论坛首页 Java企业应用版

跳转论坛:
Global site tag (gtag.js) - Google Analytics