Skip to content

Commit c2ca71c

Browse files
authored
Add missing template filter for event pages (#91)
1 parent 576f127 commit c2ca71c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

webapp/app.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ def time_until_filter(timestamp):
117117
def format_date_filter(timestamp):
118118
return datetime.fromtimestamp(timestamp, timezone.utc).strftime('%B %d, %Y')
119119

120+
@app.template_filter('format_datetime')
121+
def format_datetime_filter(timestamp):
122+
return datetime.fromtimestamp(timestamp, timezone.utc).strftime('%B %d, %Y %H:%M')
123+
120124
@app.template_filter('format_date_iso')
121125
def format_date_filter_iso(timestamp):
122126
"""Convert a UNIX timestamp to ISO 8601 string in UTC."""

0 commit comments

Comments
 (0)