tpl/time: Add time.In function

Closes #13548
This commit is contained in:
Joe Mooring
2025-04-01 11:37:22 -07:00
committed by Bjørn Erik Pedersen
parent c15ebce2fd
commit 07cbe5701e
3 changed files with 147 additions and 31 deletions

View File

@@ -29,7 +29,7 @@ func init() {
if d.Conf.Language() == nil {
panic("Language must be set")
}
ctx := New(langs.GetTimeFormatter(d.Conf.Language()), langs.GetLocation(d.Conf.Language()))
ctx := New(langs.GetTimeFormatter(d.Conf.Language()), langs.GetLocation(d.Conf.Language()), d)
ns := &internal.TemplateFuncsNamespace{
Name: name,