diff options
author | Bjørn Erik Pedersen <[email protected]> | 2021-07-28 18:02:42 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2021-07-28 18:02:42 +0200 |
commit | b5de37ee793c01f2acccdea7119be05c4182723f (patch) | |
tree | 3e756ee580e20c77a364a71231872e29b1c1dd23 /hugolib/dates_test.go | |
parent | bf301daf158e5e9673ad5f457ea3a264315942b5 (diff) | |
download | hugo-b5de37ee793c01f2acccdea7119be05c4182723f.tar.gz hugo-b5de37ee793c01f2acccdea7119be05c4182723f.zip |
Handle toml.LocalDate and toml.LocalDateTime in front matter
See #8801
Diffstat (limited to 'hugolib/dates_test.go')
-rw-r--r-- | hugolib/dates_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hugolib/dates_test.go b/hugolib/dates_test.go index 6fe3adfa7..c9a33e0f8 100644 --- a/hugolib/dates_test.go +++ b/hugolib/dates_test.go @@ -104,6 +104,7 @@ expiryDate=%s if quoted { return fmt.Sprintf("%q", d) } + return d } @@ -124,7 +125,6 @@ expiryDate=%s "short-date-yaml-qouted.nn.md", createPageContent(pageTemplYaml, shortDateTempl, true), "long-date-yaml-unqouted.en.md", createPageContent(pageTemplYaml, longDateTempl, false), "long-date-yaml-unqouted.nn.md", createPageContent(pageTemplYaml, longDateTempl, false), - // TOML "short-date-toml-unqouted.en.md", createPageContent(pageTemplTOML, shortDateTempl, false), "short-date-toml-unqouted.nn.md", createPageContent(pageTemplTOML, shortDateTempl, false), @@ -180,8 +180,8 @@ ExpiryDate: 2099-07-13 15:28:01 +0000 UTC` // TOML // These fails: TOML (Burnt Sushi) defaults to local timezone. // TODO(bep) check go-toml - // b.AssertFileContent("public/en/short-date-toml-unqouted/index.html", expectShortDateEn) - // b.AssertFileContent("public/nn/short-date-toml-unqouted/index.html", expectShortDateNn) + b.AssertFileContent("public/en/short-date-toml-unqouted/index.html", expectShortDateEn) + b.AssertFileContent("public/nn/short-date-toml-unqouted/index.html", expectShortDateNn) b.AssertFileContent("public/en/short-date-toml-qouted/index.html", expectShortDateEn) b.AssertFileContent("public/nn/short-date-toml-qouted/index.html", expectShortDateNn) |