(a)
Except as provided in subdivision (b), a judgment of dissolution of marriage may not be entered unless one of the parties to the marriage has been a resident of this state for six months and of the county in which the proceeding is filed for three months next preceding the filing of the petition.
(b)
(1)A judgment for dissolution, nullity, or legal separation of a marriage between persons of the same sex may be entered, even if neither spouse is a resident of, or maintains a domicile in, this state at the time the proceedings are filed, if the following apply:
(A)
The marriage was entered in California.
(B)
Neither party to the marriage resides in a jurisdiction that will dissolve the marriage. If the jurisdiction does not recognize the marriage, there shall be a rebuttable presumption that the jurisdiction will not dissolve the marriage.
(2)
For the purposes of this subdivision, the superior court in the county where the marriage was entered shall be the proper court for the proceeding. The dissolution, nullity, or legal separation shall be adjudicated in accordance with California law.