Ticket #3600 (closed bug: invalid)
DatePicker Bug
| Reported by: | Ven | Owned by: | joern |
|---|---|---|---|
| Priority: | critical | Milestone: | |
| Component: | web | Version: | 1.2.6 |
| Keywords: | Date Picker Bug | Cc: | venh.123@… |
| Blocking: | Blocked by: |
Description
The Date Picker has a Bug. Only for the Month of November 2008, there are duplicate dates shown in the DatePicker. This is happening for 11-02-2008. Please take a look at the date picker given in the demonstration of your site itself. The bug is shown even there. Please let me know the solution for this.
Attachments
Change History
comment:1 Changed 5 years ago by pegas123@…
I can confirm. The 11/2/08 is duplicate. Other months/years seem to be O.K. I am using jquery-ui-personalized-1.5.2 downloaded today. Happens in IE, FireFox and Chrome (so it is not JavaScript interpreter-related nor add-in influenced). Shoot me email if you can use my help with debugging/testing.
comment:2 Changed 5 years ago by pegas123@…
I can guess what it is. Look at the _generateDatepicker function. The last row of the dow loop () is supposed to increment the actual day:
printDate.setUTCDate(printDate.getUTCDate() + 1);
When you execute it with printDate = 11/2/2008 00:00 EDT you get 11/2/2008 23:00 EDT. Is't that caused by the las day of the summer time?
Not sure what the best fix would be -- reliably and efficiently adding one day (not just 24 hours)?
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

