date(): It is not safe to rely on the system’s timezone settings.
2013-10-31 19:26
513 查看
在执行php脚本时出现的错误:
解决方法:
在php.in 配置文件里添加:date.timezone = "Asia/Shanghai"
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 ‘Asia/Chongqing’ for ‘CST/8.0/no DST’ instead
解决方法:
在php.in 配置文件里添加:date.timezone = "Asia/Shanghai"
相关文章推荐
- 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. You are *required* to us
- date(): It is not safe to rely on the system’s timezone settings.
- php首次使用date函数 遇到警告:Warning:date():It is not safe to rely on the system's timezone settings.You...
- "PHP Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You
- Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use
- 关于php中Warning: date(): It is not safe to rely on the system's timezone settings.解决
- Warning: date_default_timezone_get(): 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. You are *required* to use
- 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(): It is not safe to rely on the system’s timezone settings
- php异常 Message: 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: date(): It is not safe to rely on the system's timezone settings. You are *required* to use
- date(): It is not safe to rely on the system's timezone settings in CodeIgniter
- 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 settings.
- Warning: date(): It is not safe to rely on the system's timezone settings