aboutsummaryrefslogtreecommitdiff
path: root/src/templates
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/templates/short.html6
1 files changed, 4 insertions, 2 deletions
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 @@
<h1>{{ $req.Title }}</h1>
<p><a href="{{ $req.Url }}">{{ $req.Url }}</a></p>
<p>
-Created on : {{ $req.Created }}<br>
-Expires on : {{ $req.Expires }}
+{% let created = req.Created.format("yyyy-MM-dd") %}
+{% let expires = req.Expires.format("yyyy-MM-dd") %}
+Created on : {{ $created }}<br>
+Expires on : {{ $expires }}
</p>
{% endblock %}