Fix bug where events are displayed 1 day too long