added handling of all-day events