Handle toml.LocalDate and toml.LocalDateTime in front matter

See #8801
This commit is contained in:
Bjørn Erik Pedersen
2021-07-28 18:02:42 +02:00
parent bf301daf15
commit b5de37ee79
4 changed files with 21 additions and 6 deletions

View File

@@ -55,7 +55,7 @@ func (ns *Namespace) AsTime(v interface{}, args ...interface{}) (interface{}, er
}
}
return cast.ToTimeInDefaultLocationE(v, loc)
return htime.ToTimeInDefaultLocationE(v, loc)
}