parmarmayur9090 / jquery-datepicker

Automatically exported from code.google.com/p/jquery-datepicker
0 stars 0 forks source link

[patch] Bug in start/end date handling due to currentDate being set to midday #167

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
See 
http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePicker
StartEnd.html to reproduce.

1. Choose a start and end date.
2. Now try setting the start date to the day before the end date. It won't let 
you even though the date is highlighted as 'available'.

Digging deeper, this is due to the currentDate being set to midday, and the 
start/end dates being set to midnight. So for example you can't set the 
start date to 18th Feb when the end date is 18th Feb because (18th Feb 
12:00 > 18th Feb 00:00).

Thanks,
Jason

Original issue reported on code.google.com by jason.da...@gmail.com on 9 Feb 2010 at 11:44

Attachments: