From 557d2f790c6a0f6ef2b842c67290f21a79fff8c00246b44ef33c527aab160d1b Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Sun, 15 Oct 2023 00:00:00 +0000 Subject: Convert archetype dates to UTC For privacy reasons, user time zones are not recorded at the moment they are created by an archetype. Without knowing the time zone offset, the true date is ambiguous. To correct this, all dates are converted to UTC. --- layouts/taxonomy/taxonomy.atom.xml | 2 +- layouts/taxonomy/taxonomy.gemini_atom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'layouts/taxonomy') diff --git a/layouts/taxonomy/taxonomy.atom.xml b/layouts/taxonomy/taxonomy.atom.xml index c0c9f6e..4d8b8e4 100644 --- a/layouts/taxonomy/taxonomy.atom.xml +++ b/layouts/taxonomy/taxonomy.atom.xml @@ -10,7 +10,7 @@ {{ .Site.Author.email }} Hugo -- gohugo.io - {{ replace .Site.Copyright "{currentYear}" (now.Format "2006") }} + {{ replace .Site.Copyright "{currentYear}" (now.UTC.Format "2006") }} {{ .Site.Params.Description }}{{ range first .Site.Config.Services.RSS.Limit .Data.Pages }} {{ .Permalink }} diff --git a/layouts/taxonomy/taxonomy.gemini_atom.xml b/layouts/taxonomy/taxonomy.gemini_atom.xml index 85ff034..97542a4 100644 --- a/layouts/taxonomy/taxonomy.gemini_atom.xml +++ b/layouts/taxonomy/taxonomy.gemini_atom.xml @@ -10,7 +10,7 @@ {{ .Site.Author.email }} Hugo -- gohugo.io - {{ replace .Site.Copyright "{currentYear}" (now.Format "2006") }} + {{ replace .Site.Copyright "{currentYear}" (now.UTC.Format "2006") }} {{ .Site.Params.Description }}{{ range first .Site.Config.Services.RSS.Limit .Data.Pages }} {{ replace .Permalink "https://" "gemini://" | safeURL }} -- cgit v1.2.3