From 1f5422f621f38ccaded6c817f3ea02c9c9021e9f Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Tue, 12 Sep 2023 20:54:09 +0200 Subject: [PATCH] Format affichage date page user --- app/templates/auth/user_info_page.j2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/templates/auth/user_info_page.j2 b/app/templates/auth/user_info_page.j2 index cb5a552683..a7bb02f4ec 100644 --- a/app/templates/auth/user_info_page.j2 +++ b/app/templates/auth/user_info_page.j2 @@ -27,15 +27,15 @@ {% if current_user.is_administrator() %}
- Dernière vue : {{user.last_seen or "-"}}
- Dernière connexion CAS : {{user.cas_last_login or "-"}}
+ Dernière vue : {{user.last_seen.strftime("%d/%m/%Y à %H:%M") if user.last_seen else "-"}}
+ Dernière connexion CAS : {{user.cas_last_login.strftime("%d/%m/%Y à %H:%M") if user.cas_last_login else "-"}}
{% endif %}
Dernière modif mot de passe: - {{user.date_modif_passwd.isoformat() if user.date_modif_passwd else ""}}
+ {{user.date_modif_passwd.strftime("%d/%m/%Y") if user.date_modif_passwd else ""}}
Date d'expiration: - {{user.date_expiration.isoformat() if user.date_expiration else "(sans limite)"}} + {{user.date_expiration.strftime("%d/%m/%Y") if user.date_expiration else "(sans limite)"}}