Skip to main content

Bug Tracker

Side navigation

#3437 closed bug (invalid)

Opened October 02, 2008 12:36AM UTC

Closed October 12, 2009 11:20PM UTC

Bug in datepicker

Reported by: robertwgil Owned by:
Priority: critical Milestone: 1.3
Component: plugin Version: 1.2.6
Keywords: datepicker october Cc:
Blocked by: Blocking:
Description

On every october month, the second saturday and sunday of de second week, the day is the same.

Attachments (1)
  • testcal.html (0.9 KB) - added by wdbaker54 October 07, 2008 02:44PM UTC.

    The test calendar I am using to see the problem with repeat Nov days

Change History (5)

Changed October 02, 2008 02:57PM UTC by flesler comment:1

Please repost this to the UI Bug Tracker.

Changed October 07, 2008 02:39PM UTC by wdbaker54 comment:2

I am getting the same affect - except that it is any month of November (I went ahead to 2009, 2010 and 2011 to check) has the Monday following the first Sunday be the same day as Sunday. I am using the latest version of the UI and have checked that the problem is seen in multiple browsers.

Changed October 07, 2008 03:10PM UTC by flesler comment:3

Not here. Go to the UI bug tracker.

Changed November 06, 2008 08:57PM UTC by jehinkle comment:4

The problem is daylight savings time. The Date object sets the year,month and day, but with no time specified defaults to midnight. So when the time increments by 1 day, and then daylight savings sets it back 1 hour, you get two November 2 on the calendar. Include a time greater than 1 when the date object is created and problem is solved.

Change line 1272 in ui.datepicker.js or line 5801 in jquery.ui.all.js from:

var printDate = new Date(drawYear, drawMonth, 1 - leadDays);

to:

var printDate = new Date(drawYear, drawMonth, 1 - leadDays,12);

Changed October 12, 2009 11:20PM UTC by dmethvin comment:5

resolution: → invalid
status: newclosed

This is not a jQuery core bug. Please report plugin bugs to the plugin's author, or ask on the jQuery forums. jQuery UI bugs should be reported on the UI bug tracker, http://dev.jqueryui.com .