robmonie / jquery-week-calendar

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

March 14, 2010 has wrong times #22

Open crouchkl opened 14 years ago

crouchkl commented 14 years ago

When I create a calendar where 3/14/2010 is the first day of the week, all times are off by 1 hour for that first day, starting at 2 AM. So if I have a 30 minute event starting at 1:45 AM, it will say that it's going from 1:45 AM to 3:15 AM. If I move an hour event to the 10 AM slot, it will say that it is going from 11 AM to 12 PM.

The times for the 14th that are returned from getTimeslotTimes do not include anything for 2 AM. I have 4 intervals per hour set and I get 1 AM, 1:15 AM, 1:30 AM, 1:45 AM, 3 AM, 3:15 AM...11:30 PM, 11:45 PM, 12 AM, 12:15 AM, 12:30 AM, 12:45 AM.

The rest of the days for that week are fine.

I was using version 1.2.2 and also tested this with you latest version from March.

If I go to your demo at http://robmonie.github.com/jquery-week-calendar/weekcalendar_demo_2.html, the first day of the week becomes March 13, 2010.