gpt4 book ai didi

javascript - 夏令时导致 Firefox 上的 jQuery UI 日期选择器出现问题

转载 作者:行者123 更新时间:2023-11-29 10:36:00 25 4
gpt4 key购买 nike

我在使用 Firefox 上的 jQuery UI 日期选择器时遇到问题。

我在一个基于 future 日期时间表的系统上工作,我注意到 2016-03-31 是星期四,这是正确的,但 2016-04-01 也是星期四,而它应该是星期五!

该问题在桌面版和移动版 Firefox 上均出现,但在其他浏览器上未出现。

有趣的是,它发生在 https://jqueryui.com/datepicker/ 上的演示中也是!

屏幕截图 https://jqueryui.com/datepicker/ 2016 年 3 月:

enter image description here

屏幕截图 https://jqueryui.com/datepicker/ 2016 年 4 月:

enter image description here

如您所见,4 月的所有日期都有错误的星期几。它被移动了一天。

屏幕截图 https://jqueryui.com/datepicker/#multiple-calendars 2016 年 3 月至 5 月:

enter image description here

如您所见,它在 4 月是错误的,但在 3 月和 5 月是正确的。

并且,响应a comment below ,是的,我在 Jordan, Asia .那么呢?

最佳答案

这个问题与我的国家有关,因为:

根据 @Pang comments ,

Jordan is having some Daylight Saving Time changes on 2016-04-01 and the change is right at 00:00:00! Apparently, Jordan does not have 00:00:00 on 2016-04-01 so Firefox is confused and thinks that 00:00:00 is still Thursday.

问题在 4 月 1 日自动修复:)

关于javascript - 夏令时导致 Firefox 上的 jQuery UI 日期选择器出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36245848/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com