You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i call the function getEventsBetween the dates of the recurrences of the event are wrong.
From what I understood the function $this->getNextEvents($numberOfEvents); generate the recurrences starting from the original event date.
The problem is that in the function getEventsBetween, before calling getNextEvents() the starting date is changed with the starting date of the period that the user need:
if ($startDate > $this->start_date) {
$this->start_date = Carbon::parse($startDate);
}
Then when calling getNextEvents() all the events date are wrong.
If I delete this line:
if ($startDate > $this->start_date) {
$this->start_date = Carbon::parse($startDate);
}
everything works fine, but then I have performances issues.
Thanks in advance
The text was updated successfully, but these errors were encountered:
I found that if I create an event with:
When i call the function getEventsBetween the dates of the recurrences of the event are wrong.
From what I understood the function $this->getNextEvents($numberOfEvents); generate the recurrences starting from the original event date.
The problem is that in the function getEventsBetween, before calling getNextEvents() the starting date is changed with the starting date of the period that the user need:
Then when calling getNextEvents() all the events date are wrong.
If I delete this line:
everything works fine, but then I have performances issues.
Thanks in advance
The text was updated successfully, but these errors were encountered: