Cal. Welf. & Inst. Code § 5007
Unless otherwise indicated, the provisions of this part shall not be construed to apply retroactively to terminate court commitments of mentally ill persons or inebriates under preexisting law.