Fix templates caused updating sec_to_time