def to_localtime(ts):
    return datetime(*time.localtime((ts - datetime(1970, 1, 1, tzinfo=timezone.utc)).total_seconds())[:6])
Convert datetime object from UTC to local time zone
dataset/ETHPy150Open jborg/attic/attic/helpers.py/to_localtime