10 lines
181 B
Python
10 lines
181 B
Python
|
from app import app
|
||
|
|
||
|
@app.template_filter('date')
|
||
|
def filter_date(date):
|
||
|
"""
|
||
|
Print a date in a human-readable format.
|
||
|
"""
|
||
|
|
||
|
return date.strftime("%d %b %Y à %H:%M")
|