Hi,
Recently, I would like to program a little application, which would connect to SOGo calendar server and fetch the events for a given startDate and endDate.
Thus, I use ical4j and ical4j-connector library and "getEventsForTimePeriod" function in CalDavCalendarCollection class. However, it is found that return value of "getEventsForTimePeriod" function would contain all RECURRING VEVENTS, which is not between the given startDate and endDate.
For example,
2015 / 09 / 01 has 1 event : "09/01-e"
2015 / 09 / 03 has 1 event : "09/03-e"
2015 / 09 / 10 has 1 event : "09/10-recur" with weekly repeated for 2 times
(Occurrance Date woudl be 09/10, 09/17)
I call the "getEventsForTimePeriod" function with parameter:
startTime=new DateTime("2015/09/01")
endTime = new DateTime("2015/09/03")
And it is expected that return value would ONLY contain "09/01-e" and "09/03-e"
But, the event "09/10-recur" is unexpectedly included in the return value of function.
Is this a bug for ical4j-connector? Or I misused this function?
BTW, library version I used :
ical4j : 1.0.3
ical4j-connector : 0.9.4.3
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Recently, I would like to program a little application, which would connect to SOGo calendar server and fetch the events for a given startDate and endDate.
Thus, I use ical4j and ical4j-connector library and "getEventsForTimePeriod" function in CalDavCalendarCollection class. However, it is found that return value of "getEventsForTimePeriod" function would contain all RECURRING VEVENTS, which is not between the given startDate and endDate.
For example,
2015 / 09 / 01 has 1 event : "09/01-e"
2015 / 09 / 03 has 1 event : "09/03-e"
2015 / 09 / 10 has 1 event : "09/10-recur" with weekly repeated for 2 times
(Occurrance Date woudl be 09/10, 09/17)
I call the "getEventsForTimePeriod" function with parameter:
startTime=new DateTime("2015/09/01")
endTime = new DateTime("2015/09/03")
And it is expected that return value would ONLY contain "09/01-e" and "09/03-e"
But, the event "09/10-recur" is unexpectedly included in the return value of function.
Is this a bug for ical4j-connector? Or I misused this function?
BTW, library version I used :
ical4j : 1.0.3
ical4j-connector : 0.9.4.3