(a)
Within 21 days, or, if good cause appears to the court, 25 days from the date that a temporary restraining order is granted or denied, a hearing shall be held on the petition. If no request for a temporary restraining order is made, the hearing shall be held within 21 days, or, if good cause appears to the court, 25 days from the date that the petition is filed.
(b)
If a hearing is not held within the time provided in subdivision (a), the court may nonetheless hear the matter, but the temporary restraining order shall no longer be enforceable unless it is extended under Section 245.