code: def get_local_time(index):
      
      dt = index.to_pydatetime()
      dt = dt.replace(tzinfo=pytz.utc)
      return dt.astimezone(tzlocal()).time()
docs: Localize datetime for better output in graphs
  
      :param pandas.DateTimeIndex index: pandas datetime index
      :return: aware time objet
      :rtype: datetime.time