From 0a2db6215cb10a6bfcb558f5afabc7fba208e3f8 Mon Sep 17 00:00:00 2001 From: Gusted Date: Mon, 20 Nov 2023 11:16:21 +0100 Subject: [PATCH] [GITEA] Improve display of Webauthn keys' creation time - Unify how the creation time of webauthn keys are shown with GPG and SSH keys. - Instead of using the time since, show the date that the key was created. (cherry picked from commit 89fb988fdd700ac10e6358e462f3365b85171e81) --- templates/user/settings/security/webauthn.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/user/settings/security/webauthn.tmpl b/templates/user/settings/security/webauthn.tmpl index 28d8511fb4..dd9bbf8674 100644 --- a/templates/user/settings/security/webauthn.tmpl +++ b/templates/user/settings/security/webauthn.tmpl @@ -10,7 +10,7 @@
{{.Name}}
- {{TimeSinceUnix .CreatedUnix ctx.Locale}} + {{ctx.Locale.Tr "settings.added_on" (DateTime "short" .CreatedUnix) | Safe}}