(a) This section governs trials of violations of county ordinances and ordinances of state authorities, which violations may be punished by incarceration or monetary penalty. Nothing in this chapter shall grant to any county or state authority more authority to enact or enforce such ordinances than the county or state authority has independently of this chapter. The punishment imposed for any ordinance violation shall not exceed a fine of $1,000.00 or six months' imprisonment or both, provided the judge shall probate not less than 120 days of any sentence imposed, except as otherwise provided by general law, and shall not exceed the maximum punishment specified by the ordinance. In the event a sentence is revoked, a defendant shall not serve more than 60 days in a county jail.