yi1242200713 2012-11-04 12:09:18 2419次浏览 1条回复 0 0 0

打开网页提示这个date()

[<a href='function.date'>function.date</a>]: 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 'UTC' for '8.0/no DST' instead 
</div><!-- mainmenu -->

说错误在配置中的这个里面 51 Copyright &copy; <?php echo date('Y'); ?><?php date_default_timezone_set('UTC')?> by My Company.<br/>

新手不是太懂,求说明,本人刚刚学习百度谷歌里面没见到,可能是问题是在太简单了。

  • 回复于 2012-11-04 14:13 举报

    得设置一下时区。例如:
    在php.ini里 date.timezone = Asia/Shanghai 或者
    在*.php里 date_default_timezone_set("Asia/Shanghai")

您需要登录后才可以回复。登录 | 立即注册