Replace DateTime with DateUtils (#32383)

This commit is contained in:
wxiaoguang authored and GitHub committed 2024-11-02 04:08:28 +00:00
1 parent 7dcccc3bb1
commit fec6b3d500
33 files changed
+73 -37

No files matched your search

+1
View File
@@ -100,6 +100,7 @@ func NewTemplateContextForWeb(ctx *Context) TemplateContext {
tmplCtx := NewTemplateContext(ctx)
tmplCtx["Locale"] = ctx.Base.Locale
tmplCtx["AvatarUtils"] = templates.NewAvatarUtils(ctx)
tmplCtx["DateUtils"] = templates.NewDateUtils(ctx)
tmplCtx["RootData"] = ctx.Data
tmplCtx["Consts"] = map[string]any{
"RepoUnitTypeCode": unit.TypeCode,