def METHOD_NAME(date_time_tz):
    try:
        formatted_time = datetime.datetime.strptime(date_time_tz, "%Y-%m-%dT%H:%M:%S").strftime("%Y-%m-%d %H:%M:%S")
        return formatted_time
    except Exception as e:
        pass
    try:
        formatted_time = datetime.datetime.strptime(date_time_tz, "%Y-%m-%dT%H:%M:%SZ").strftime("%Y-%m-%d "
                                                                                                 "%H:%M:%S")
        return formatted_time
    except Exception as e:
        return date_time_tz