最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
php date(): It is not safe 警告解决
时间:2022-06-24 19:49:27 编辑:袖梨 来源:一聚教程网
升级php版本从PHP5.2.17 到 PHP 5.3.21 后出现如下保存
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. …
解决办法
在程序中使用
date_default_timezone_set('PRC');
或者在php.ini里找到date.timezone这行,把值改成PRC,如date.timezone = PRC。如果没有这一行直接加上就好
[Date] ; Defines the default timezone used by the date functions ; http://php.net/date.timezone date.timezone = America/New_York
相关文章
- 最火全球交易所数字资产交易TOP10-去中心化比特币交易所币安推荐 06-16
- 《大侠立志传》全丙级刀怎么获取 06-16
- Namada Token是什么意思?解析NAM代币背景与生态价值 06-16
- 最新2025正规虚拟币交易平台榜单-最安全现货交易app币安推荐 06-16
- 《宝可梦大集结》快龙技能详尽介绍 06-16
- 《交错战线》坍陨技能有哪些优势 06-16