Open GoogleCodeExporter opened 8 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
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
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
Original issue reported on code.google.com by
ehassenp...@gmail.com
on 12 May 2010 at 1:57