(a) Notwithstanding the provisions of section five, article twelve, chapter eight of this code, on and after September 1, 1983, each and every municipal ordinance defining a misdemeanor offense of or relating to driving under the influence of alcohol or driving under the influence of intoxicating liquor or otherwise prohibiting conduct made unlawful by this article shall be null and void and of no effect unless such ordinance defines such an offense in substantially similar terms as an offense defined under the provisions of this article and such offense contains the same elements as an offense defined herein.
(b) Notwithstanding the provisions of section one, article eleven, chapter eight of this code, on and after August 1, 1983, each and every municipal ordinance defining a misdemeanor offense of or relating to driving under the influence of alcohol or driving under the influence of intoxicating liquor or otherwise prohibiting conduct made unlawful by this article shall prescribe the same penalty for such offense as is prescribed for an offense under this article containing the same elements.