The buyer takes the property subject to the lease
California Civil Code section 821 gives a buyer who takes property subject to an existing lease the same rights to collect rent and enforce that lease. For you, that means the sale alone is not tenant notice and does not set a move-out date. If possession needs to change, the lease and applicable notice and possession rules still matter.
Read California Civil Code section 821