#86 GetOccurences bug starting year 2013 when using last year definition calendar.

v1.0_(example)
open
nobody
8
2013-01-08
2013-01-08
SnuffyKL
No

Hi there,

I face a bug on the GetOccurences where I have a Calendar definition which I created last year and want to repeat the task every week. The problem is when it starts on Jan 2013, the next occurence jump straight to 2016. If you changed, the

i) DTEND = 20120411T020500Z to DTEND = 20130411T020500Z
ii)DTSTART = 20120411T015000Z to DTSTART = 20130411T015000Z

it works well calculating the next occurence but when u changed to 2012 or before 2013, the problem will occured. Another scenario is, GetOccurences works well before 2013 happen and after 2016. So there is some in between bug in the code. Hope you could help me with this problem. I attached a simple source code at here for better traceability.
Thank you.

1 Attachments

Discussion