Cal. Health & Safety Code § 17031.6
(b) If, in an action subject to this section, a tenant alleges both of the following in an answer or other response to an unlawful detainer action, the trial on that action shall be set not earlier than 30 days from the date of filing the answer, and in no event prior to the completion of reasonable and diligently pursued discovery, as determined by the court, unless both parties stipulate to an earlier date:
(d)