Home > Backend Development > PHP Tutorial > 关于php 从 5.2 升级到 5.4 后 mantis 报错的有关问题

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

WBOY
Release: 2016-06-13 12:01:04
Original
1302 people have browsed it
MyException - 代码迷
首页
  • Web开发
  • Android
  • J2EE
  • PHP
  • Linux/Unix
  • MySql
  • C#
  • 更多...
当前位置: 代码迷 » PHP » 关于php 从 5.2 升级到 5.4 后 mantis 报错的有关问

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

www.MyException.Cn,网友分享于:2014-06-30   浏览:3次
关于php 从 5.2 升级到 5.4 后 mantis 报错的问题


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

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template