The tenure of any temporary acting official appointed under this chapter shall be during the absence of the regularly elected or appointed official while in service and until the expiration of 30 days from the date that notice in writing is given to the appointing power by the regularly elected or appointed official of his or her intention to return and resume the duties of his or her office, at which time the powers, privileges, and duties of the temporary acting official shall automatically end. Upon receipt of notice from the regular official of his or her intent to return, the appointing authority shall notify the temporary official that his or her service will automatically terminate on the date of the return to office of the regular official.