diff --git a/app/__init__.py b/app/__init__.py
index 46faa17..752409a 100644
--- a/app/__init__.py
+++ b/app/__init__.py
@@ -7,6 +7,7 @@ from .constants import (
PermissionLevel,
InfoboxKind, InfoboxIcons, InfoboxHTMLClass
)
+from datetime import datetime
import os
import time
import secrets
@@ -92,4 +93,8 @@ def create_app():
def inject_auth():
return {"is_logged_in": is_logged_in, "get_active_user": get_active_user, "active_user": get_active_user()}
+ @app.template_filter("ts_datetime")
+ def ts_datetime(ts, format):
+ return datetime.utcfromtimestamp(ts).strftime(format)
+
return app
diff --git a/app/templates/base.html b/app/templates/base.html
index 0e95ef9..ce2fc9b 100644
--- a/app/templates/base.html
+++ b/app/templates/base.html
@@ -25,4 +25,5 @@
+