aboutsummaryrefslogtreecommitdiffstats
path: root/templates/admin/packages
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2024-11-02 12:08:28 +0800
committerGitHub <noreply@github.com>2024-11-02 04:08:28 +0000
commitfec6b3d50072e48bb51c18c5c4ea682dc6319573 (patch)
treea2a90692cb4c91ea10ecc85d39b5c582e2af0b25 /templates/admin/packages
parent7dcccc3bb19655a6f83dd495ffc332708d0c8678 (diff)
downloadgitea-fec6b3d50072e48bb51c18c5c4ea682dc6319573.tar.gz
gitea-fec6b3d50072e48bb51c18c5c4ea682dc6319573.zip
Replace DateTime with DateUtils (#32383)
Diffstat (limited to 'templates/admin/packages')
-rw-r--r--templates/admin/packages/list.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/admin/packages/list.tmpl b/templates/admin/packages/list.tmpl
index a5ad93b89c..6f5cef7a7b 100644
--- a/templates/admin/packages/list.tmpl
+++ b/templates/admin/packages/list.tmpl
@@ -71,7 +71,7 @@
{{end}}
</td>
<td>{{FileSize .CalculateBlobSize}}</td>
- <td>{{DateTime "short" .Version.CreatedUnix}}</td>
+ <td>{{ctx.DateUtils.AbsoluteShort .Version.CreatedUnix}}</td>
<td><a class="delete-button" href="" data-url="{{$.Link}}/delete?page={{$.Page.Paginater.Current}}&sort={{$.SortType}}" data-id="{{.Version.ID}}" data-name="{{.Package.Name}}" data-data-version="{{.Version.Version}}">{{svg "octicon-trash"}}</a></td>
</tr>
{{end}}