Nothing in this chapter shall require any change in the construction or intended use of a building that is legally under construction or for which a building permit has been issued as of the effective date of the ordinance codified in this chapter and the construction of which shall be diligently pursued until completion.