If approval of an ordinance by the mayor or like officer is necessary, the date of approval shall be deemed the date of its final passage by the legislative body within the meaning of this article.
If an ordinance becomes law when the time for approval or veto has expired, and no action has been taken, the date of the expiration of that time shall be deemed the date of its final passage by the legislative body within the meaning of this article.