summaryrefslogtreecommitdiff
path: root/layouts/term
diff options
context:
space:
mode:
authorNicholas Johnson <nick@nicholasjohnson.ch>2023-10-15 00:00:00 +0000
committerNicholas Johnson <nick@nicholasjohnson.ch>2023-10-15 00:00:00 +0000
commit557d2f790c6a0f6ef2b842c67290f21a79fff8c00246b44ef33c527aab160d1b (patch)
treecd43cc3922f693c3a5a2a76ad9f5b15701ca9fb9c19fba8ee5b8ce54dfba40dc /layouts/term
parenta9d1fbc5da1d690288c04ca1637723c3c88f873305276e91d814a9583476525b (diff)
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.
Diffstat (limited to 'layouts/term')
-rw-r--r--layouts/term/term.atom.xml2
-rw-r--r--layouts/term/term.gemini_atom.xml2
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/term/term.atom.xml b/layouts/term/term.atom.xml
index c0c9f6e..4d8b8e4 100644
--- a/layouts/term/term.atom.xml
+++ b/layouts/term/term.atom.xml
@@ -10,7 +10,7 @@
<email>{{ .Site.Author.email }}</email>
</author>
<generator>Hugo -- gohugo.io</generator>
- <rights type="html">{{ replace .Site.Copyright "{currentYear}" (now.Format "2006") }}</rights>
+ <rights type="html">{{ replace .Site.Copyright "{currentYear}" (now.UTC.Format "2006") }}</rights>
<subtitle>{{ .Site.Params.Description }}</subtitle>{{ range first .Site.Config.Services.RSS.Limit .Data.Pages }}
<entry>
<id>{{ .Permalink }}</id>
diff --git a/layouts/term/term.gemini_atom.xml b/layouts/term/term.gemini_atom.xml
index 85ff034..97542a4 100644
--- a/layouts/term/term.gemini_atom.xml
+++ b/layouts/term/term.gemini_atom.xml
@@ -10,7 +10,7 @@
<email>{{ .Site.Author.email }}</email>
</author>
<generator>Hugo -- gohugo.io</generator>
- <rights type="html">{{ replace .Site.Copyright "{currentYear}" (now.Format "2006") }}</rights>
+ <rights type="html">{{ replace .Site.Copyright "{currentYear}" (now.UTC.Format "2006") }}</rights>
<subtitle>{{ .Site.Params.Description }}</subtitle>{{ range first .Site.Config.Services.RSS.Limit .Data.Pages }}
<entry>
<id>{{ replace .Permalink "https://" "gemini://" | safeURL }}</id>