[PHP] date("G") don't work

jackxiang 2012-7-7 18:53 | |
on this host the function 'date("g")' don't work properly. Now, the function should return 13, but return 7. It has a delay of 6 hours.

Someone can help me?


It probably gets the server timezone, GMT -8
Would setting time zone work in one of your global configuration files?
For example setting time zone to Brisbane, Australia
PHP Code:

作者:jackxiang@向东博客 专注WEB应用 构架之美 --- 构架之美,在于尽态极妍 | 应用之美,在于药到病除
地址:http://jackxiang.com/post/5392/
版权所有。转载时必须以链接形式注明作者和原始出处及本声明!

评论列表
2012-7-24 07:33 | hxngb4ff Email Homepage
支持楼主,长见识了
分页: 1/1 第一页 1 最后页
发表评论

昵称

网址

电邮

打开HTML 打开UBB 打开表情 隐藏 记住我 [登入] [注册]