Fix saving all-day event in appointment editor