[kronolith] free periods generation
Cédric Parent
cedric.parent at multitel.be
Wed Jun 15 00:38:30 PDT 2005
Hello,
when adding attendees to an event, I have a little problem in the free
periods generated.
I have a contact who have overlapped events, like this:
|----------|
|----------|
The non-available period is correct:
|-------------------|
But the free periods looks like this (without considering the second
event):
---| |-----------
When we parse the second event, we have to extend the existing free
period instead of generating a new one.
Here is a patch to framework/iCalendar/iCalendar/vfreebusy.php :
154c154,156
< $periods[$nextstart] = min($start, $endStamp);
---
> if ($nextstart<=$start) {
> $periods[$nextstart] = min($start, $endStamp);
> }
Cédric
More information about the kronolith
mailing list