使用
javascript库Date.js我发现当我向Date.parse()函数传递ISO 8601格式的UTC 0日期时,我得到一个代表相同日期但添加了本地时区的对象.
例如,
Given the date: 2012-08-27T14:57:00Z (in ISO 8601 format),which is showing a time of 14:57 UTC,why would this be parsed as 14:57 GMT-400 as opposed to 10:57 GMT-400?
我有created a fiddle表明它在行动.
如果确实存在错误或者我对解析结果的理解不正确,请告诉我.