Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tpl
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-07-28 19:02:42 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-07-28 19:02:42 +0300
commitb5de37ee793c01f2acccdea7119be05c4182723f (patch)
tree3e756ee580e20c77a364a71231872e29b1c1dd23 /tpl
parentbf301daf158e5e9673ad5f457ea3a264315942b5 (diff)
Handle toml.LocalDate and toml.LocalDateTime in front matter
See #8801
Diffstat (limited to 'tpl')
-rw-r--r--tpl/time/time.go2
1 files changed, 1 insertions, 1 deletions
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)
}