In any action under this chapter, unless otherwise ordered by the court for good cause shown, the time allowed the defendant to answer the complaint, answer the complaint, if amended, or amend the answer under paragraph (2), (3), (5), (6), or (7) of subdivision (a) of Section 586 shall not exceed five days.