In such case that an application to the planning and zoning commission is initiated due to an existing violation of this chapter, and such application is denied, the violation shall be required to be corrected within ten days of such denial or as specified by the final decision-making authority if a greater time period is required. The maximum extension of time shall not exceed 30 days. The provision for compliance shall begin with the date of the final decision of the city council on a rezoning, or if an appeal to it is filed according to the provisions of this division; otherwise, compliance shall take place within the requisite period of time after the planning and zoning commission hearing.