Cal. Penal Code § 1329
(b) The court, in its discretion, may authorize payment to such a witness, if he is employed and if his salary is not paid by his employer during the time he is absent from his employment because of being such a witness, of a sum equal to his gross salary for such time, but such sum shall not exceed eighteen dollars ($18) per day. The sum is a county charge.
A person compensated under the provisions of this subdivision may not receive the payment of witness’ fees as provided for in subdivision (a).