PHP Warning: phpinfo(): It is not safe to rely on the system's timezone setting
来源:互联网 发布:网络传销怎么定罪 编辑:程序博客网 时间:2024/06/06 18:27
一、错误描述
Warning: phpinfo(): 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. in /var/WWW/phpinfo.php on line 2
二、解决办法
编辑php.ini
打开时间配置并修改
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone =Asia/Shanghai
然后重启apache
1 0
- PHP Warning: phpinfo(): It is not safe to rely on the system's timezone setting
- PHP Warning: phpinfo(): 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
- php Warning: phpinfo(): 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
- Warning: phpinfo() [function.phpinfo]: 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.
- 解决方案:Warning: phpinfo(): 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.处理方法
- 【php】PHP Warning: 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.
- PHP Warning: date() [function.date]: It is not safe to rely on the system's timezone
- PHP Warning: strtotime(): It is not safe to rely on the system's timezone settings
- PHP Warning: date() [function.date]: It is not safe to rely on the system's timezone
- 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 Warning: strftime(): It is not safe to rely on the system's timezone testlink
- PHP Warning: date(): It is not safe to rely on the system's timezone settings
- vc中edit控件使用总结
- 考试之道
- 面向对象的相关问题
- android自定义悬浮控件
- Codeforces Round #331 (Div. 2) B. Wilbur and Array (贪心)
- PHP Warning: phpinfo(): It is not safe to rely on the system's timezone setting
- 一种键盘扫描程序,很方便
- 欢迎使用CSDN-markdown编辑器
- 《面向对象分析与设计(第三版)》第二章 读书笔记 一
- 观察者模式 java
- SparkSQL On Yarn with Hive,操作和访问Hive表
- 正则表达式 BY deerchao
- Xcode Archive打包时不报错,但是buildFailed原因以及解决方案
- copy使用...自定义类实现copy操作...