From f62eaded157e026d92077a18f8211b64a30fdc436188f19d32e089244d3c4c20 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Thu, 7 Nov 2024 00:00:00 +0000 Subject: Don't convert time to UTC in Atom feeds The entry archetype already wipes the time of day of entries and converts their dates to UTC, for the sake of user privacy. If the user overrides this behavior and purposely includes times and/or time zones, the theme should not interfere. --- layouts/taxonomy/taxonomy.atom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'layouts/taxonomy/taxonomy.atom.xml') diff --git a/layouts/taxonomy/taxonomy.atom.xml b/layouts/taxonomy/taxonomy.atom.xml index 9ceeb79..4ef94d6 100644 --- a/layouts/taxonomy/taxonomy.atom.xml +++ b/layouts/taxonomy/taxonomy.atom.xml @@ -34,7 +34,7 @@ {{ .Permalink }} {{ .Site.Title }} - {{ .Date.UTC.Format "2006-01-02T15:04:05Z" | safeHTML }} + {{ .Date.Format "2006-01-02T15:04:05-0700" | safeHTML }} {{- with $authorName }} @@ -49,7 +49,7 @@ {{ .Permalink }} {{ .Title }} - {{ .Date.UTC.Format "2006-01-02T15:04:05Z" | safeHTML }} + {{ .Date.Format "2006-01-02T15:04:05-0700" | safeHTML }} {{ .Content | html }} {{ end }} -- cgit v1.2.3