Localize datetime for better output in graphs

    :param pandas.DateTimeIndex index: pandas datetime index
    :return: aware time objet
    :rtype: datetime.time

def get_local_time(index):
    """Localize datetime for better output in graphs

    :param pandas.DateTimeIndex index: pandas datetime index
    :return: aware time objet
    :rtype: datetime.time
    """
    dt = index.to_pydatetime()
    dt = dt.replace(tzinfo=pytz.utc)
    return dt.astimezone(tzlocal()).time()