(a) County or city zoning ordinances shall be consistent with the general plan of the county or city by January 1, 1974. A zoning ordinance shall be consistent with a city or county general plan only if both of the following conditions are met:
(1) The city or county has officially adopted such a plan.
(2) The various land uses authorized by the ordinance are compatible with the objectives, policies, general land uses, and programs specified in the plan.
(b) Any resident or property owner within a city or a county, as the case may be, may bring an action or proceeding in the superior court to enforce compliance with subdivision (a). Any such action or proceeding shall be governed by Chapter 2 (commencing with Section 1084) of Title 1 of Part 3 of the Code of Civil Procedure. No action or proceeding shall be maintained pursuant to this section by any person unless the action or proceeding is commenced and service is made on the legislative body within 90 days of the enactment of any new zoning ordinance or the amendment of any existing zoning ordinance.
(c) In the event that a zoning ordinance becomes inconsistent with a general plan by reason of amendment to the plan, or to any element of the plan, the zoning ordinance shall be amended within a reasonable time so that it is consistent with the general plan as amended.
(d) Notwithstanding Section 65803, this section shall also apply to a charter city.
(Amended by Stats. 2018, Ch. 856, Sec. 6. (SB 1333) Effective January 1, 2019.)