def _dfromtimestamp(timestamp):
    """Custom date timestamp constructor. ditto
    """
    try:
        return datetime.date.fromtimestamp(timestamp)
    except __HOLE__:
        timestamp -= time.timezone
        d = datetime.date(1970, 1, 1) + datetime.timedelta(seconds=timestamp)
        if _isdst(d):
            timestamp += 3600
            d = datetime.date(1970, 1, 1) + datetime.timedelta(seconds=timestamp)
        return d
dataset/ETHPy150Open KoffeinFlummi/Chronyk/chronyk/chronyk.py/_dfromtimestamp