Add create date to topic list

This commit is contained in:
rubenwardy
2018-12-24 00:11:15 +00:00
parent 50889ccca5
commit fa0506f58a
2 changed files with 9 additions and 2 deletions

View File

@@ -32,6 +32,10 @@ def throw(err):
def domain(url):
return urlparse(url).netloc
@app.template_filter()
def date(value):
return value.strftime("%Y-%m-%d")
@app.template_filter()
def datetime(value):
return value.strftime("%Y-%m-%d %H:%M") + " UTC"