From 1939e873482b57170898525b72f4c27a7bad09df Mon Sep 17 00:00:00 2001 From: KN4CK3R Date: Wed, 24 Aug 2022 03:39:00 +0200 Subject: [PATCH] Enhance package date display (#20928) * Use better date display. * Update templates/package/view.tmpl --- templates/package/view.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/package/view.tmpl b/templates/package/view.tmpl index 0116da53b3..95d668a3fd 100644 --- a/templates/package/view.tmpl +++ b/templates/package/view.tmpl @@ -39,7 +39,7 @@ {{if .HasRepositoryAccess}}
{{svg "octicon-repo" 16 "mr-3"}} {{.PackageDescriptor.Repository.FullName}}
{{end}} -
{{svg "octicon-calendar" 16 "mr-3"}} {{.PackageDescriptor.Version.CreatedUnix.FormatDate}}
+
{{svg "octicon-calendar" 16 "mr-3"}} {{TimeSinceUnix .PackageDescriptor.Version.CreatedUnix $.locale}}
{{svg "octicon-download" 16 "mr-3"}} {{.PackageDescriptor.Version.DownloadCount}}
{{template "package/metadata/composer" .}} {{template "package/metadata/conan" .}}