diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-11-02 12:08:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-02 04:08:28 +0000 |
commit | fec6b3d50072e48bb51c18c5c4ea682dc6319573 (patch) | |
tree | a2a90692cb4c91ea10ecc85d39b5c582e2af0b25 /templates/user/settings/keys_principal.tmpl | |
parent | 7dcccc3bb19655a6f83dd495ffc332708d0c8678 (diff) | |
download | gitea-fec6b3d50072e48bb51c18c5c4ea682dc6319573.tar.gz gitea-fec6b3d50072e48bb51c18c5c4ea682dc6319573.zip |
Replace DateTime with DateUtils (#32383)
Diffstat (limited to 'templates/user/settings/keys_principal.tmpl')
-rw-r--r-- | templates/user/settings/keys_principal.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/user/settings/keys_principal.tmpl b/templates/user/settings/keys_principal.tmpl index 37d8fb0e95..484a29e22a 100644 --- a/templates/user/settings/keys_principal.tmpl +++ b/templates/user/settings/keys_principal.tmpl @@ -22,7 +22,7 @@ <div class="flex-item-main"> <div class="flex-item-title">{{.Name}}</div> <div class="flex-item-body"> - <i>{{ctx.Locale.Tr "settings.added_on" (DateTime "short" .CreatedUnix)}} — {{svg "octicon-info" 16}} {{if .HasUsed}}{{ctx.Locale.Tr "settings.last_used"}} <span {{if .HasRecentActivity}}class="green"{{end}}>{{DateTime "short" .UpdatedUnix}}</span>{{else}}{{ctx.Locale.Tr "settings.no_activity"}}{{end}}</i> + <i>{{ctx.Locale.Tr "settings.added_on" (ctx.DateUtils.AbsoluteShort .CreatedUnix)}} — {{svg "octicon-info" 16}} {{if .HasUsed}}{{ctx.Locale.Tr "settings.last_used"}} <span {{if .HasRecentActivity}}class="green"{{end}}>{{ctx.DateUtils.AbsoluteShort .UpdatedUnix}}</span>{{else}}{{ctx.Locale.Tr "settings.no_activity"}}{{end}}</i> </div> </div> <div class="flex-item-trailing"> |