]> git.maquefel.me Git - brevno-suite/hugo/commit
Fix raw TOML dates in where/eq
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 6 Jun 2022 07:48:40 +0000 (09:48 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 7 Jun 2022 11:02:58 +0000 (13:02 +0200)
commit0566bbf7c7f2898fcd1d6156b27733cd48aa0449
tree69ee0bde4d334cb0565afd5fb4e17247c946aad9
parent534e7155bb504682a37f5663d8c913e439b11e07
Fix raw TOML dates in where/eq

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
18 files changed:
common/hreflect/helpers.go
common/htime/time.go
hugolib/dates_test.go
tpl/collections/append_test.go
tpl/collections/apply_test.go
tpl/collections/collections.go
tpl/collections/collections_test.go
tpl/collections/complement_test.go
tpl/collections/index_test.go
tpl/collections/merge_test.go
tpl/collections/reflect_helpers.go
tpl/collections/sort.go
tpl/collections/symdiff_test.go
tpl/collections/where.go
tpl/collections/where_test.go
tpl/compare/compare.go
tpl/compare/compare_test.go
tpl/compare/init.go