fix bug with convert_time_format