diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-11-02 05:08:28 +0100 |
---|---|---|
committer | Gusted <postmaster@gusted.xyz> | 2024-11-03 16:37:01 +0100 |
commit | f2eabf6308b52ba8e9e0811e30c1a7dc357c448f (patch) | |
tree | 93b19d26ede49b82deefe04b8ec1fb48fc01dbb1 /services/context | |
parent | Merge pull request 'chore(cleanup): remove unused TestCreateFile' (#5788) fro... (diff) | |
download | forgejo-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.go | 1 |
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 } |