Bug Tracker

Modify

Ticket #3600 (closed bug: invalid)

Opened 5 years ago

Last modified 19 months ago

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

DatePickerBug.JPG Download (14.1 KB) - added by Ven 5 years ago.

Change History

Changed 5 years ago by Ven

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)?

comment:3 Changed 5 years ago by flesler

  • Status changed from new to closed
  • Resolution set to invalid

Just check older tickets, don't go creating tickets just like that, please.

comment:4 Changed 19 months ago by anonymous

Where can we have the good explanation for this problem ?

I'm using an old version of jquery-ui (1.6) and i cannot upgrade the version to 1.7 (otherwise everything is broken) i need to patch the datepicker 1.6 and to fix the bug, how can i do ?

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.