From 0e8045d8ea51b1bf856cfd9c57cabd8187a3a2ab Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Wed, 26 Apr 2023 03:48:30 +0800 Subject: Fix template function DateTime (#24317) Before, 500 error ![image](https://user-images.githubusercontent.com/2114189/234170176-403ffd1b-ec27-42be-bff9-86184dc8d74d.png) --- templates/admin/auth/list.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates/admin/auth/list.tmpl') diff --git a/templates/admin/auth/list.tmpl b/templates/admin/auth/list.tmpl index f8e15eddef..c9f7c0d516 100644 --- a/templates/admin/auth/list.tmpl +++ b/templates/admin/auth/list.tmpl @@ -26,8 +26,8 @@ {{.Name}} {{.TypeName}} {{if .IsActive}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}} - {{DateTime "short" .UpdatedUnix.FormatLong .UpdatedUnix.FormatShort}} - {{DateTime "short" .CreatedUnix.FormatLong .CreatedUnix.FormatShort}} + {{DateTime "short" .UpdatedUnix}} + {{DateTime "short" .CreatedUnix}} {{svg "octicon-pencil"}} {{end}} -- cgit v1.2.3