Fixed the dates logic for Event.