Added extra logic to defend against all events being on the same day and causing the timeline to explode