summaryrefslogtreecommitdiffstats
path: root/common/htime/time.go
AgeCommit message (Collapse)Author
2022-06-07Fix raw TOML dates in where/eqBjørn Erik Pedersen
Note that this has only been a problem with "raw dates" in TOML files in /data and similar. The predefined front matter dates `.Date` etc. are converted to a Go Time and has worked fine even after upgrading to v2 of the go-toml lib. Fixes #9979
2022-05-08Use configured timeZone for the clockBjørn Erik Pedersen
And some other related adjustments. Updates #8787
2022-05-08Add `clock` cli flagsatotake
Close #8787
2022-03-17all: gofmt -w -r 'interface{} -> any' .Bjørn Erik Pedersen
Updates #9687
2021-11-01common/htime: Fix time.Format with Go layoutsBjørn Erik Pedersen
Fixes #9107
2021-10-25htime: Set zone of datetime from from `go-toml`satotake
`go-toml/v2`'s unmarshaler does not specify zone name even if value has offset explicitly. To make time-formatting behaviour consistent, convert them into string in hugo. Close #8895
2021-08-02Reduce binary size vs locale, update to CLDR v36.1Bjørn Erik Pedersen
Test building with `go build -ldflags="-s -w"` Hugo 0.86.2: 46MB Before this commit: 77MB After this commit: 54MB Fixes #8839 Fixes #8841
2021-07-28Handle toml.LocalDate and toml.LocalDateTime in front matterBjørn Erik Pedersen
See #8801
2021-07-27Localize time.FormatBjørn Erik Pedersen
Fixes #8797