import logging


def format_string(inputstring:str)->str:
    """Correctly formats the time and day into legible string"""
    datetimelist = inputstring.split('T')
    real_alarm_time = datetimelist[-1]
    real_alarm_day = datetimelist[0]
    logging_string= "formatted " + inputstring +"to string"
    logging.info(logging_string)
    return "Set for " + real_alarm_time + " on " + real_alarm_day