Fix calendar bug: past events were not displayed correctly due to last commit