CAL. CCP. CODE § 1179 : California Code - Section 1179

The court may relieve a tenant against a forfeiture of a lease or rental agreement, whether written or oral, and whether or not the tenancy has terminated, and restore him or her to his or her former estate or tenancy, in case of hardship, as provided in Section 1174. The court has the discretion to relieve any person against forfeiture on its own motion.

An application for relief against forfeiture may be made at any time prior to restoration of the premises to the landlord. The application may be made by a tenant or subtenant, or a mortgagee of the term, or any person interested in the continuance of the term. It must be made upon petition, setting forth the facts upon which the relief is sought, and be verified by the applicant. Notice of the application, with a copy of the petition, must be served at least five days prior to the hearing on the plaintiff in the judgment, who may appear and contest the application. Alternatively, a person appearing without an attorney may make the application orally, if the plaintiff either is present and has an opportunity to contest the application, or has been given ex parte notice of the hearing and the purpose of the oral application. In no case shall the application or motion be granted except on condition that full payment of rent due, or full performance of conditions or covenants stipulated, so far as the same is practicable, be made.