0
我customer1表對他們來說,時區爲-9:00 UTC 我的customer2對他們的時區+5:00 UTC時區計算
所以當發送customer1表的日期和時間,我需要轉換,將其調整到customer2表的時間,這裏是我doing-
cust1UTCOffset = -540 cust2UTCOffset = 300
calculateOffset = cust2UTCOffset - cust1UTCOffset = 840分鐘
等於14個小時。
現在如果customer1表將23月 - 1016 2:00 AM 對於上述的customer2計算後它將成爲 - 16:00
我試圖在Windows7中更改日期和時區設置驗證。對於類似的配置和時間,它將返回15:00 PM。
任何人都可以請建議我在這裏失蹤?