Fix computation of new COUNT value for recurrence rules
This commit is contained in:
parent
9d9262d71f
commit
075748b076
1 changed files with 1 additions and 1 deletions
|
@ -315,7 +315,7 @@ class database_driver extends calendar_driver
|
||||||
|
|
||||||
// if recurrence COUNT, update value to the correct number of future occurences
|
// if recurrence COUNT, update value to the correct number of future occurences
|
||||||
if ($event['recurrence']['COUNT']) {
|
if ($event['recurrence']['COUNT']) {
|
||||||
$fromdate = clone $master['start'];
|
$fromdate = clone $event['start'];
|
||||||
$fromdate->setTimezone($this->server_timezone);
|
$fromdate->setTimezone($this->server_timezone);
|
||||||
$sqlresult = $this->rc->db->query(sprintf(
|
$sqlresult = $this->rc->db->query(sprintf(
|
||||||
"SELECT event_id FROM " . $this->db_events . "
|
"SELECT event_id FROM " . $this->db_events . "
|
||||||
|
|
Loading…
Add table
Reference in a new issue