Correct the genAvailableTime().