正在显示PHP 日期选择器 http://www.triconsole.com/php/calendar_datepicker.php在我的博客页面上使用简码。但低于警告。
Warning: date() [function.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 'Australia/Perth' for 'WST/8.0/no DST' instead in /home/xxx/public_html/wp-content/plugins/xxx/calendar/calendar_form.php on line 48
我的服务器 PHP 版本是:5.3.19
我该如何摆脱这个警告?
我试图隐藏 PHP 警告但没有成功,仍然收到警告。
error_reporting(E_ALL^ (E_WARNING | E_NOTICE));
我还尝试将时区设置为:
date_default_timezone_set('Australia/Perth');
但没有运气。
现在需要你们的帮助。谢谢...
尝试这个:
date_default_timezone_set("Australia/Perth");
or
date.timezone = Australia/Perth
use date_default_timezone_get();
代替date();
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)