码迷,mamicode.com
首页 > Web开发 > 详细

php的时区修改

时间:2017-07-14 15:01:36      阅读:308      评论:0      收藏:0      [点我收藏+]

标签:not   tin   lease   miss   safe   ide   any   ted   time   

Warning: phpinfo(): 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.

警告:phpinfo():依靠系统的时区设置是不安全的。 您需要*使用date.timezone设置或date_default_timezone_set()函数。 如果您使用任何这些方法,并且您仍然收到此警告,您很可能拼写时区标识符。 我们现在选择了时区“UTC”,但请设置date.timezone来选择您的时区。

即在php,ini中修改date,timezone参数设置为如:date.timezone=Asia/Chongqing

php的时区修改

标签:not   tin   lease   miss   safe   ide   any   ted   time   

原文地址:http://www.cnblogs.com/ddgen/p/7169927.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!