summaryrefslogtreecommitdiffstats
path: root/services/context
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2024-11-02 05:08:28 +0100
committerGusted <postmaster@gusted.xyz>2024-11-03 16:37:01 +0100
commitf2eabf6308b52ba8e9e0811e30c1a7dc357c448f (patch)
tree93b19d26ede49b82deefe04b8ec1fb48fc01dbb1 /services/context
parentMerge pull request 'chore(cleanup): remove unused TestCreateFile' (#5788) fro... (diff)
downloadforgejo-f2eabf6308b52ba8e9e0811e30c1a7dc357c448f.tar.xz
forgejo-f2eabf6308b52ba8e9e0811e30c1a7dc357c448f.zip
[PORT] Replace DateTime with DateUtils (gitea#32383)
(cherry picked from commit fec6b3d50072e48bb51c18c5c4ea682dc6319573)
Diffstat (limited to 'services/context')
-rw-r--r--services/context/context.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/context/context.go b/services/context/context.go
index 91e7b1849d..65796c3ee7 100644
--- a/services/context/context.go
+++ b/services/context/context.go
@@ -102,6 +102,7 @@ func NewTemplateContextForWeb(ctx *Context) TemplateContext {
tmplCtx := NewTemplateContext(ctx)
tmplCtx["Locale"] = ctx.Base.Locale
tmplCtx["AvatarUtils"] = templates.NewAvatarUtils(ctx)
+ tmplCtx["DateUtils"] = templates.NewDateUtils(ctx)
return tmplCtx
}