It is not safe to rely on the system's timezone settings.
来源:互联网 发布:网络监控用什么软件 编辑:程序博客网 时间:2024/06/07 03:52
访问Yii框架自带的例子系统时,页面打印500错误:
date() [<a href='function.date'>function.date</a>]: 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
经查和试验解决方案为:
在php.ini中设置时区:
date.timezone = "Asia/Shanghai"
或者在网页开头中加入:
<?php
date_default_timezone_set("PRC");
?>
0 0
- PHP Warning: strtotime(): It is not safe to rely on the system's timezone settings
- It is not safe to rely on the system's timezone settings[
- It is not safe to rely on the system's timezone settings
- date(): It is not safe to rely on the system’s timezone settings
- PHP Warning: date(): It is not safe to rely on the system’s timezone settings
- PHP Warning: strtotime(): It is not safe to rely on the system's timezone settings.
- 【php】PHP Warning: date(): It is not safe to rely on the system's timezone settings.
- date(): It is not safe to rely on the system's timezone settings
- Warning: date(): It is not safe to rely on the system's timezone settings
- Warning: date() [function.date]: It is not safe to rely on the system's timezone settings.
- yii产生warning date(): It is not safe to rely on the system's timezone settings
- PHP Warning: date(): It is not safe to rely on the system's timezone settings
- Warning: phpinfo() [function.phpinfo]: It is not safe to rely on the system's timezone settings.
- It is not safe to rely on the system’s timezone settings
- PHP Warning: phpinfo(): It is not safe to rely on the system\'s timezone settings
- date(): It is not safe to rely on the system’s timezone settings.
- 【php】PHP Warning: date(): It is not safe to rely on the system's timezone settings.
- It is not safe to rely on the system's timezone settings
- org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory
- HDU_ACM-2042 不容易系列之二
- 数组----下标与指针效率问题
- Eclipse用4个空格代替Tab
- ettercap&wireshark简单实现ARP欺骗+监控
- It is not safe to rely on the system's timezone settings.
- 查看,调整优先级和调度类别
- POJ 1850 Code (组合数学)
- 找工作之担心
- 关于C++类中访问权限的若干疑问(虚函数访问权限)
- C#Winform导出Excel
- 安卓模拟器BlueStacks+TCPdump对APP抓包分析
- 2.4.0HTML5头部和元信息
- 二分图基础理论说明