jQuery.datepicker.formatDate and timezone offset

本小妞迷上赌 提交于 2019-12-01 18:39:57

What you're getting is correct. Your example sets the time at midnight for Paris. Midnight in Paris is 6PM the day before in the US for the Eastern Time Zone which I am in.

Your first time: GMT+0200 is Paris

Your second time: GMT-0500 is Chicago (note it is currently Daylight Savings Time)

So, when you change the time zone to US (using one of our 6 time zones), the output is the time in the US when is that time in Paris.

Here is an updated fiddle with a the time set to 6 AM Paris: http://jsfiddle.net/jensbits/7ACdB/1/

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!