Use proper datetime formatting

This commit is contained in:
rubenwardy
2018-05-27 23:45:12 +01:00
parent dff967d3df
commit 48573fe922
2 changed files with 11 additions and 1 deletions

View File

@@ -35,6 +35,10 @@ def throw(err):
def domain(url):
return urlparse(url).netloc
@app.template_filter()
def datetime(value):
return value.strftime("%Y-%m-%d %H:%M") + " UTC"
@app.route("/uploads/<path:path>")
def send_upload(path):
return send_from_directory("public/uploads", path)