def dateToDatetime(value):
    """Converts milliseconds since epoch that ElasticSearch uses to printable string ."""
    if not value:
        return ""
    date = datetime.datetime.utcfromtimestamp(float(str(value))/1000)
    return pytz.utc.localize(date).astimezone(pytz.timezone(settings.TIME_ZONE))
dataset/ETHPy150Open grigorescu/Brownian/Brownian/view/templatetags/es_extras.py/dateToDatetime/original