fixed wrong check for date validity for all-day events