Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DatePicker Bug, Weird calendar functionality #75

Open
Gafa opened this issue Nov 8, 2010 · 0 comments
Open

DatePicker Bug, Weird calendar functionality #75

Gafa opened this issue Nov 8, 2010 · 0 comments

Comments

@Gafa
Copy link

Gafa commented Nov 8, 2010

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant