1
>>> jQuery.fullCalendar.parseISO8601("2011-04-18T17:00:00Z").getUTCHours()
22
不宜結果是17?
parseISO8601返回這個日期對象:
>>> jQuery.fullCalendar.parseISO8601("2011-04-18T17:00:00Z")
Date {Mon Apr 18 2011 17:00:00 GMT-0500 (CDT)}
我認爲日期對象應該是 「12:00:00 GMT-0500」 是同一時間。我誤解了嗎?
從FF 4的Date對象:
>>> new Date("2011-04-18T17:00:00Z")
Date {Mon Apr 18 2011 12:00:00 GMT-0500 (CDT)}
>>> new Date("2011-04-18T17:00:00Z").getUTCHours()
17
>>> jQuery.fullCalendar.parseISO8601(「2011-04 -18T17:00:00Z「,false).getUTCHours() >>> jQuery.fullCalendar.parseISO8601(」2011-04-18T17:00:00Z「,true).getUTCHours() 22 – Mike 2011-04-20 16:47:21