contao/test — Issue #1045: Events spanning multiple months are not displayed correctly
Author: leofeyer
Created: 2011-11-28 17:55:34+00:00
State: open
Labels: calendar, Defect

Events that span multiple months (e.g. from June 26th to August 12th) are only displayed in June and August but not in July. To fix it, open file system/modules/calendar/Events.php and change line 142

```php
// Add the event if it is inside the scope
if (($objEvents->startTime >= $intStart && $objEvents->startTime <= $intEnd) || ($objEvents->endTime >= $intStart && $objEvents->endTime <= $intEnd))
{
$this->addEvent($objEvents, $objEvents->startTime, $objEvents->endTime, $strUrl, $intEnd, $id);
}
```

to

```php
$this->addEvent($objEvents, $objEvents->startTime, $objEvents->endTime, $strUrl, $intEnd, $id);
```

--- _Originally created on September 30th, 2009, at 10:00pm (ID 1045)_