From 77dbdae02cccabfcfa04c5b4f2200e90329abd25 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) (cherry picked from commit 0a2db6215cb10a6bfcb558f5afabc7fba208e3f8) (cherry picked from commit a39eac2e12865004667c6abd00300521ff2db771) (cherry picked from commit fa164c97836bca08d30138c6b74dffe73196cbe5) (cherry picked from commit e02dcf00654ed8628b323ee4f72549278e46f998) (cherry picked from commit a515b10137e3923dfeb1c246f21605f3ccb8f969) --- 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 dd8b8a4e59..aaffe8d4d5 100644 --- a/templates/user/settings/security/webauthn.tmpl +++ b/templates/user/settings/security/webauthn.tmpl @@ -11,7 +11,7 @@
{{.Name}}
- {{TimeSinceUnix .CreatedUnix ctx.Locale}} + {{ctx.Locale.Tr "settings.added_on" (DateTime "short" .CreatedUnix) | Safe}}