From c04c30e883e0df5d5031e1a62e2eca7524c2be45 Mon Sep 17 00:00:00 2001
From: Frank Sauerburger <frank@sauerburger.com>
Date: Tue, 5 Jan 2021 22:14:15 +0100
Subject: [PATCH] Expiry date format

---
 .../uhepp_vault/templates/uhepp_vault/token_list.html     | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/uhepp_org/uhepp_vault/templates/uhepp_vault/token_list.html b/uhepp_org/uhepp_vault/templates/uhepp_vault/token_list.html
index bc6adf4..5b840e1 100644
--- a/uhepp_org/uhepp_vault/templates/uhepp_vault/token_list.html
+++ b/uhepp_org/uhepp_vault/templates/uhepp_vault/token_list.html
@@ -37,9 +37,11 @@ password in environment variables.</p>
       <th scope="row">{{ token.description }}</th>
       <td>{{ token.created|date:"Y-m-d H:i" }}</td>
       <td>
-				{{ token.expires|default_if_none:"never" }}
-				{% if token.expired %}
-						<small class="text-danger">(Expired)</small>
+				{% if token.expires %}
+          {{ token.expires|date:"Y-m-d H:i" }}
+          {% if token.expired %}
+              <small class="text-danger">(Expired)</small>
+          {% endif %}
         {% endif %}
 			</td>
       <td>
-- 
GitLab