robmonie / jquery-week-calendar

Now actively maintained in the following fork - https://github.com/themouette/jquery-week-calendar
388 stars 388 forks source link

Daylight savings problem #36

Open anticHxCx opened 13 years ago

anticHxCx commented 13 years ago

Hello, how are you?

Today I was beginning my work in this jquery-week-calendar (1.2.2) and I found a problem with "October" dates (in all demos). When arrive in "Oct 15" the date is repeated several times. The problem happen only in "October", every year. I was thinking and probably happen because of the "daylight savings".

EDIT:

I'd didn't seen it: https://github.com/robmonie/jquery-week-calendar/issues/2

robmonie:

Could you show the final solution?

The solution presented has bugs, when you apply them the "next" and "prev" function don't work correctly and also after the change the "function" ignore "firstDayOfWeek" option, ever the first day is Sunday;

Eg:

1 - The calendar open viewing "full work" 2 - Click in 1 day (or other option) 3 - In toolbar show "Sep 05, 2011" but in Calendar "Sunday Sep 04, 2011". 4 - If you click in "next" (in this case) nothing will happen; 5 - If you click in "prev" show in toolbar "Sep 03, 2011" but in Calendar "Sunday Aug 28, 2011";

Thanks. Gustavo