optimized createEventForAllDay