a) Interest on all money deposited belongs to, and shall be paid quarterly into the general fund of, the local agency represented by the officer making the deposit, unless otherwise directed by law.
(b) Notwithstanding the provisions of subdivision (a), and except as otherwise directed by law, if the governing body of the local agency represented by the officer making the deposit so directs, such interest shall be paid to the fund which contains the principal on which the interest accrued.
(Amended by Stats. 1978, Ch. 126, Sec. 1.)