joshiut / jmonthcalendar

Automatically exported from code.google.com/p/jmonthcalendar
Other
0 stars 0 forks source link

Dead spot in the calendar #39

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Insert any dates between Nov 7th 2010 and Nov 30th 2010
2.
3.

What is the expected output? What do you see instead?
I expected to see the events render in the calendar.  All of the other
events show up ok.  If you put anything in this range, no events show up
for those days.

What version of the product are you using? On what operating system?
1.3.2 beta, I'm using Windows with Firefox.  The issue occurs on
Mac(Safari) and PC(IE)

Please provide any additional information below.
I have tried reducing the number of events in case the load is too much. 
This did not work.  It still does it even with only a couple of events.
I was able to go back to 1.3.1 beta and this fixed the problem.  The issue
is obviously with the newer version.

{ EventID: 108579, StartDateTime: new Date(2010,11, 08), Description:
'12:45pm BIOL 696 Structural Seminar - Sanders<br>12:45pm - 3:00pm',
EndDateTime: new Date(2010,11, 08)}

Original issue reported on code.google.com by ehassenp...@gmail.com on 12 May 2010 at 1:57

GoogleCodeExporter commented 9 years ago
something to do with Daylight Savings as far as I can determine.. happens again 
after March 10, 2011...

Original comment by FlyMe...@gmail.com on 30 Jan 2012 at 8:24

GoogleCodeExporter commented 9 years ago
Has someone resolved this issue.
We are seeing it in March 12 - March 31st 2012.

Original comment by MrDavidN...@gmail.com on 21 Feb 2012 at 6:33

GoogleCodeExporter commented 9 years ago
Hi there, I found the code below in the comments of this blog:
http://www.bytecyclist.com/2009/08/09/jmonthcalendar-132-beta-release/

This is a work-around that will resolve the problem. Though not the most 
elegant, I think we would be hard-pressed to find a better solution.

==============================================

Joe on January 1, 2011 at 12:19 pm said:

Thanks for the great plugin! Does exactly what I need with almost no effort on 
my part. I found one issue, though: _drawEventsOnCalendar has trouble in months 
where Daylight Savings changes. When displaying March 2011, for example, for 
events after March 12 the TimeSpan class (correctly) returns a value 
representing one less calendar day, but with 23 hours added. I hacked my way 
around it by rounding the date difference that gets passed in to the nearest 
full day, like this:

var startI = new TimeSpan(Math.round((tempStartDT - 
_dateRange.startDate)/86400000)*86400000).days;
var endI = new TimeSpan(Math.round((tempEndDT - 
_dateRange.startDate)/86400000)*86400000).days;

Original comment by jennifer...@gmail.com on 25 Feb 2012 at 11:54