clientcide icon indicating copy to clipboard operation
clientcide copied to clipboard

DatePicker Bug, Weird calendar functionality

Open Gafa opened this issue 15 years ago • 0 comments

I'm guessing this hasn't been addressed as I'm running into this too.

So I poked around with the code, and discovered that if the hours in fillCalendar method ===0 then you get the weirdness in my case I got for November 2010:

31 1 2 3 4 5 6 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7

Place the below code in the method fillCalendar in DatPicker (class function) under:

var hours = startDate.get('hours');

if(hours.toInt()===0) hours=23; //XXX new code

This solved the problem, problem is if the read in date doesn't contain the time, weirdness happens.

I do have latest version of clientcide and datepicker with stickyWin. I tested this with IE7.0 and FF 3.6. Tested with Mootools 1.2.4 and 1.2.5 core.

Gafa

Gafa avatar Nov 08 '10 20:11 Gafa