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.gemini_atom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'layouts/index.gemini_atom.xml') 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 }} -- cgit v1.2.3