Make setcontest be able to set start_time and end_time