aboutsummaryrefslogtreecommitdiff
path: root/archetypes
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 /archetypes
parenta9d1fbc5da1d690288c04ca1637723c3c88f873305276e91d814a9583476525b (diff)
downloadhugo-theme-journal-557d2f790c6a0f6ef2b842c67290f21a79fff8c00246b44ef33c527aab160d1b.tar.gz
hugo-theme-journal-557d2f790c6a0f6ef2b842c67290f21a79fff8c00246b44ef33c527aab160d1b.zip
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 'archetypes')
-rw-r--r--archetypes/entry.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/archetypes/entry.md b/archetypes/entry.md
index 46d491a..32d6347 100644
--- a/archetypes/entry.md
+++ b/archetypes/entry.md
@@ -1,6 +1,6 @@
---
title: "{{ replace .Name "-" " " | title }}"
-date: {{ dateFormat "2006-01-02T00:00:00" .Date }}
+date: {{ now.UTC.Format "2006-01-02T00:00:00Z" }}
draft: true
---