From f1cd786cd745c6fa2a419648af968e9a66937ffb Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Sun, 31 Oct 2021 13:27:38 +0100 Subject: Pretty print the creation and expiration dates --- src/templates/short.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/templates/short.html') diff --git a/src/templates/short.html b/src/templates/short.html index 1f36fdf..fac811c 100644 --- a/src/templates/short.html +++ b/src/templates/short.html @@ -3,7 +3,9 @@
-Created on : {{ $req.Created }}
-Expires on : {{ $req.Expires }}
+{% let created = req.Created.format("yyyy-MM-dd") %}
+{% let expires = req.Expires.format("yyyy-MM-dd") %}
+Created on : {{ $created }}
+Expires on : {{ $expires }}