diff options
Diffstat (limited to 'tpl/time/time.go')
-rw-r--r-- | tpl/time/time.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tpl/time/time.go b/tpl/time/time.go index 623b7206a..cd78b83aa 100644 --- a/tpl/time/time.go +++ b/tpl/time/time.go @@ -68,9 +68,9 @@ func (ns *Namespace) Format(layout string, v any) (string, error) { return ns.timeFormatter.Format(t, layout), nil } -// Now returns the current local time. +// Now returns the current local time or `clock` time func (ns *Namespace) Now() _time.Time { - return _time.Now() + return htime.Now() } // ParseDuration parses the duration string s. |