Cal. Rev. & Tax. Code § 24681
Section 461 of the Internal Revenue Code, relating to the general rule for taxable year of deduction, shall apply, except as otherwise provided.