Closed xuhdev closed 2 months ago
<lastmod>{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05+10:00" ) }}</lastmod>
The above is nonsensical. If you want to include an offset in a layout string it must be 07:00.
Again, this is not a bug, but a conceptual disconnect. Please use the forum (https://discourse.gohugo.io/) for questions and troubleshooting.
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes.
Details
To reproduce:
layouts/_defaults/sitemap.xml
, which is same as the embedded sitemap template, with-07:00
replaced with+10:00
.hugo
inide the unarchived directory.public/sitemap.xml
contains this line:<lastmod>2024-05-14T19:08:54+50:00</lastmod>
, a+50
timezone.