Imprisonment for violation of an ordinance shall be in the city jail, unless by ordinance the legislative body prescribes imprisonment in the county jail. If city prisoners are imprisoned in the county jail the expense is a charge against the city.
Ca. Gov. Code § 36903