Fixed issue with dates on event creation