<reponame>rleir/MediaCloud-Web-Tools<filename>server/util/dates.py
from datetime import datetime as dt


def unixToSolrDate(timestamp):
    date = dt.fromtimestamp(timestamp)
    return date.strftime('%Y-%m-%d')

from datetime import datetime as dt


def unixToSolrDate(timestamp):
    date = dt.fromtimestamp(timestamp)
    return date.strftime('%Y-%m-%d')