Affects Version/s: 7.0.X, 7.1.X, Master
Steps to reproduce:
1. Add calendar portlet to a page
2. Add event to calendar - it should not be a 'whole day' event, it can be, for example, from 1pm to 2pm
3. Switch view to 'agenda'
4. Navigate to the day of the event. Then navigate to a day before the event
Added event is visible only on the day it takes place
Added event is visible on the day it takes place but it is also visible in agenda view of previous day.
As it turned out this behavior is caused by the "Maximum Days to Display" option from Configuration/Display Settings. Which is not readily apparent at all.
The problem is that this value can only be set to 1,2,3,4 or 5. But it cannot be set to 0, or this feature cannot be disabled, as the customer would like, so that in agenda view they would only see the events for the currently viewed day.