使用php函数date_default_timezone_set设置时区的时候,为什么Etc/GMT-8实际表示的是GMT+8时区啊,里面的+、-符号怎么是反的啊 ?
解决方案 »
- 新学php最近做简易公告栏的网页碰到了一个问题
- 关于 php的smarty求解
- 求教:数据库key=>value问题???
- php 生成网页快照报错
- 服务器如何给前台一个信号
- smarty中的循环(只要10分了对不住还请大家帮忙)
- 关于路径的表示法,不清楚....
- 用document.getElementById方法,在另外shtml页面显示变量的问题,请教高手。
- php向mysql中写数据的中英文问题
- 高分求救 !!!lunix下配置MySQL+PHP+Apahce 急在线等!!!!!!
- 出现The parameter is incorrect. 错误,求解!!!
- PHP生成excel文件的时候能不能给它加密呢?
The plus and minus signs (+/-) are not intuitive. For example, "Etc/GMT-10" actually refers to the timezone "(GMT+10:00)
Canberra,Sydney,Melbourne". [red. that is not fully true, as it is *just* GMT+10. This setting does not take care of daylight savings time for example. Please avoid using them.] "Etc/GMT+10" actually refers to the timezone GMT-10:00. These are what I have tested. I believe other + and - are also logically reversed.
http://cn.php.net/manual/en/timezones.others.php
但是解析的时候要简化,所以:东八区 Etc/GMT-8 以及 西八区 Etc/GMT+8。