PHP Warning: date() [funct…
2014-10-31 16:48
344 查看
原文地址:PHP Warning: date() [function.date]: It is not safe to rely on the system's timezone作者:ToBeWarning: strtotime(): 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
/usr/local/apache2/htdocs/cacti/include/global_constants.php
on line 165
Warning: 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 the
timezone 'UTC' for now, but please set date.timezone to select your
timezone. in
/usr/local/apache2/htdocs/cacti/include/global_constants.php
on line 165
解决:
在php.ini中设置date.timezone的值为PRC,设置好以后的为:date.timezone =
PRC,同时取消这一行代码的注释,即去掉前面的分号。
再重启apache
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
/usr/local/apache2/htdocs/cacti/include/global_constants.php
on line 165
Warning: 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 the
timezone 'UTC' for now, but please set date.timezone to select your
timezone. in
/usr/local/apache2/htdocs/cacti/include/global_constants.php
on line 165
解决:
在php.ini中设置date.timezone的值为PRC,设置好以后的为:date.timezone =
PRC,同时取消这一行代码的注释,即去掉前面的分号。
再重启apache
相关文章推荐
- PHP Warning: date() [function.date]: It is not safe to rely on the system's timezone
- PHP register_shutdown_funct…
- 【PHP】symfony Warning:&nbs…
- PHP SYSTEM WARNING: 'date_default_timezone_get()'
- PHP Warning: date() [function.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中关于date("Y-m-d H:i:s")慢8小时的解决
- Warning: Unexpected character in input: '' (ASCII=21) state=1 in /usr/local/php/bin/php-cgi on line 383
- php date("Y-m-d G:i T",time()) 取出来的时间和本地时间老差8个小时
- 用PHP, MySQL和jQuery mobile建一…
- PHP Warning: date() [function.date]: It is not safe to rely on the system's timezone
- PHP Warning: date() [function.date]解决方案
- XAMPP下配置SMTP mail服务,使PHP…
- PHP Warning: ob_start() : output handler 'ob_gzhandler conflicts with 'zlib output compression'
- 【php】PHP Warning: date(): It is not safe to rely on the system's timezone settings.
- PHP5.3 中的Warning: date_default_timezone_set
- PHP Warning: date() [function.date]: It is not safe to rely on the system's timezone
- PHP异常: " Warning: Cannot modify header information - headers already sent by ...."
- 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