解决方案:Warning: phpinfo(): It is not safe to rely on the system's timezone settings.
来源:互联网 发布:logmett是什么软件 编辑:程序博客网 时间:2024/06/05 17:55
(1)打开phpinfo();时在date地方会出现如下提示:
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.
看下面表格,发现date.timezone没有设置值:
(2)这是php的事情,设置就在php.ini中。发现默认的是;date.timezone=,后面没有值。所以增加最下面那一行即可。
[Date]; Defines the default timezone used by the date functions; http://php.net/date.timezone;date.timezone =;增加一个timezonedate.timezone=PRC
(3)记得重启apache服务器。让设置生效。
0 0
- 解决方案: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.
- 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
- 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 setting
- PHP Warning: strtotime(): 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.
- 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
- 【php】PHP Warning: date(): It is not safe to rely on the system's timezone settings.
- 分位数(quantile)与分位函数(quantile function)
- [Leetcode 8, Easy] String to Integer
- hdu 2203 亲和串 (kmp入门)
- Java class文件的JDK编译版本号
- 浮点数的二进制表示
- 解决方案:Warning: phpinfo(): It is not safe to rely on the system's timezone settings.
- 我该如何向非技术人解释SQL注入?
- jasperreports报表Flash展现
- poj 2406 Power Strings
- 国外程序员整理的机器学习资源大全
- Qt Qsplitter 问题处理
- Java注释@interface的用法【转】
- 删除新建快捷方式自动加的"-快捷方式"文字
- 存储图片到access数据库中