aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/_default/sitemap.xml
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2023-10-07 20:19:06 -0400
committertdro <tdro@noreply.example.com>2023-10-07 20:19:06 -0400
commitc83c49b0e18f0593a62a8a7754d1ff49ac097289 (patch)
treeecf67e580ce99de31816573afd88fdff5e57bfcb /themes/default/layouts/_default/sitemap.xml
parent6f2f44c7ff0e3ff8ffd4e6bb394a0b39c0f89adf (diff)
downloadcanory-c83c49b0e18f0593a62a8a7754d1ff49ac097289.tar.gz
canory-c83c49b0e18f0593a62a8a7754d1ff49ac097289.tar.bz2
canory-c83c49b0e18f0593a62a8a7754d1ff49ac097289.zip
themes/default: Make time and dates consistent
Don't mix local time with UTC and fix future date calculation
Diffstat (limited to 'themes/default/layouts/_default/sitemap.xml')
-rw-r--r--themes/default/layouts/_default/sitemap.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/default/layouts/_default/sitemap.xml b/themes/default/layouts/_default/sitemap.xml
index c47d1db..f8ab315 100644
--- a/themes/default/layouts/_default/sitemap.xml
+++ b/themes/default/layouts/_default/sitemap.xml
@@ -3,7 +3,7 @@
{{- $changefreq := "weekly" -}}
{{- $priority := 0.5 -}}
-{{- $lastmod := now.Format "2006-01-02T15:04:05-07:00" }}
+{{- $lastmod := now | time.Format "2006-01-02T15:04:05-07:00" }}
<urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
@@ -21,7 +21,7 @@
{{- end -}}
{{- if not .Lastmod.IsZero -}}
- {{- $lastmod = safeHTML (.Lastmod.Format "2006-01-02T15:04:05-07:00") -}}
+ {{- $lastmod = safeHTML (.Lastmod | time.Format "2006-01-02T15:04:05-07:00") -}}
{{- end }}
<url>