From 324f7ead1c9333c8580277316ae9f620dfed3d715e805b5f824d6fe4da15567e Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Sun, 15 Oct 2023 00:00:00 +0000 Subject: Convert Atom feed dates to UTC Atom feed dates reported as UTC were not necessarily UTC. The entry archetype converts from local to UTC by default, but the user may override that behavior. --- layouts/taxonomy/taxonomy.atom.xml | 4 ++-- layouts/taxonomy/taxonomy.gemini_atom.xml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'layouts/taxonomy') diff --git a/layouts/taxonomy/taxonomy.atom.xml b/layouts/taxonomy/taxonomy.atom.xml index 4d8b8e4..e499961 100644 --- a/layouts/taxonomy/taxonomy.atom.xml +++ b/layouts/taxonomy/taxonomy.atom.xml @@ -2,7 +2,7 @@ {{ .Permalink }} {{ .Site.Title }} - {{ .Date.Format "2006-01-02T15:04:05Z" | safeHTML }} + {{ .Date.UTC.Format "2006-01-02T15:04:05Z" | safeHTML }} @@ -15,7 +15,7 @@ {{ .Permalink }} {{ .Title }} - {{ .Date.Format "2006-01-02T15:04:05Z" | safeHTML }} + {{ .Date.UTC.Format "2006-01-02T15:04:05Z" | safeHTML }} {{ .Content | html }} {{ end }} diff --git a/layouts/taxonomy/taxonomy.gemini_atom.xml b/layouts/taxonomy/taxonomy.gemini_atom.xml index 97542a4..84af3b3 100644 --- a/layouts/taxonomy/taxonomy.gemini_atom.xml +++ b/layouts/taxonomy/taxonomy.gemini_atom.xml @@ -2,7 +2,7 @@ {{ replace .Permalink "https://" "gemini://" }} {{ .Site.Title }} - {{ .Date.Format "2006-01-02T15:04:05Z" | safeHTML }} + {{ .Date.UTC.Format "2006-01-02T15:04:05Z" | safeHTML }} @@ -15,7 +15,7 @@ {{ replace .Permalink "https://" "gemini://" | safeURL }} {{ .Title }} - {{ .Date.Format "2006-01-02T15:04:05Z" | safeHTML }} + {{ .Date.UTC.Format "2006-01-02T15:04:05Z" | safeHTML }} {{ end }} -- cgit v1.2.3