Problems with jQuery datepicker calendars in Firefox

I have incorrect dates appearing in my jQuery UI datepicker for 2016 months in Firefox (Mobile and Web). For instance:

March 31, 2016 - Thursday and April 1, 2016, of course, Friday, but not on my calendar, where it appears on Thursday. A similar problem exists in May 2016.

See screenshots:

March 2016 and April 2016

Note that I tried to use many versions of jQuery scripts, but had the same problem with all of them.

+5
source share
1 answer

Not a problem with the code.

This problem was caused by Firefox with the jquery datepicker, because in some countries in the years 2016-04-01, changes were made in the daytime, and the changes were made at 00:00:00! Therefore, these countries do not have 00:00:00 2016-04-01, Firefox is confused and believes that 00:00:00 is still Thursday.

And the problem has been fixed while we are in 1-4-2016 ...

+4
source

Source: https://habr.com/ru/post/1245721/


All Articles