We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 576f127 commit c2ca71cCopy full SHA for c2ca71c
webapp/app.py
@@ -117,6 +117,10 @@ def time_until_filter(timestamp):
117
def format_date_filter(timestamp):
118
return datetime.fromtimestamp(timestamp, timezone.utc).strftime('%B %d, %Y')
119
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
+
124
@app.template_filter('format_date_iso')
125
def format_date_filter_iso(timestamp):
126
"""Convert a UNIX timestamp to ISO 8601 string in UTC."""
0 commit comments