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/term/term.atom.xml | 4 ++-- layouts/term/term.gemini_atom.xml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'layouts/term') diff --git a/layouts/term/term.atom.xml b/layouts/term/term.atom.xml index 9ceeb79..4ef94d6 100644 --- a/layouts/term/term.atom.xml +++ b/layouts/term/term.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 }} diff --git a/layouts/term/term.gemini_atom.xml b/layouts/term/term.gemini_atom.xml index e02d2fe..7afe36e 100644 --- a/layouts/term/term.gemini_atom.xml +++ b/layouts/term/term.gemini_atom.xml @@ -34,7 +34,7 @@ {{ .Permalink | replaceRE `^https://(.*)index.gmi$` "gemini://$1" }} {{ .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 | replaceRE `^https://(.*)index.gmi$` "gemini://$1" }} {{ .Title }} - {{ .Date.UTC.Format "2006-01-02T15:04:05Z" | safeHTML }} + {{ .Date.Format "2006-01-02T15:04:05-0700" | safeHTML }} {{ end }} -- cgit v1.2.3