[caldav] Minor code clean up and improvements to all-day handling