Refactor DateUtils and merge TimeSince (#32409)

Follow #32383 and #32402
This commit is contained in:
wxiaoguang authored and GitHub committed 2024-11-04 11:30:00 +00:00
1 parent 61be51e56b
commit b068dbd40e
74 files changed
+241 -228

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@
</div>
<div class="tw-mr-4">
{{if not .result.UpdatedUnix.IsZero}}
<span class="ui grey text">{{ctx.Locale.Tr "explore.code_last_indexed_at" (TimeSinceUnix .result.UpdatedUnix ctx.Locale)}}</span>
<span class="ui grey text">{{ctx.Locale.Tr "explore.code_last_indexed_at" (DateUtils.TimeSince .result.UpdatedUnix)}}</span>
{{end}}
</div>
</div>