From b5de37ee793c01f2acccdea7119be05c4182723f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Wed, 28 Jul 2021 18:02:42 +0200 Subject: Handle toml.LocalDate and toml.LocalDateTime in front matter See #8801 --- tpl/time/time.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tpl') diff --git a/tpl/time/time.go b/tpl/time/time.go index a59d85b06..f91bf1047 100644 --- a/tpl/time/time.go +++ b/tpl/time/time.go @@ -55,7 +55,7 @@ func (ns *Namespace) AsTime(v interface{}, args ...interface{}) (interface{}, er } } - return cast.ToTimeInDefaultLocationE(v, loc) + return htime.ToTimeInDefaultLocationE(v, loc) } -- cgit v1.2.3