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/index.atom.xml | 4 ++-- layouts/index.gemini_atom.xml | 4 ++-- layouts/taxonomy/taxonomy.atom.xml | 4 ++-- layouts/taxonomy/taxonomy.gemini_atom.xml | 4 ++-- layouts/term/term.atom.xml | 4 ++-- layouts/term/term.gemini_atom.xml | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) (limited to 'layouts') diff --git a/layouts/index.atom.xml b/layouts/index.atom.xml index 6c3a111..62df481 100644 --- a/layouts/index.atom.xml +++ b/layouts/index.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/index.gemini_atom.xml b/layouts/index.gemini_atom.xml index a6abebc..09e2bc1 100644 --- a/layouts/index.gemini_atom.xml +++ b/layouts/index.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 }} 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 }} diff --git a/layouts/taxonomy/taxonomy.gemini_atom.xml b/layouts/taxonomy/taxonomy.gemini_atom.xml index 5eadc00..60bc51b 100644 --- a/layouts/taxonomy/taxonomy.gemini_atom.xml +++ b/layouts/taxonomy/taxonomy.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 }} 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