diff options
author | Nicholas Johnson <nick@nicholasjohnson.ch> | 2023-10-15 00:00:00 +0000 |
---|---|---|
committer | Nicholas Johnson <nick@nicholasjohnson.ch> | 2023-10-15 00:00:00 +0000 |
commit | 557d2f790c6a0f6ef2b842c67290f21a79fff8c00246b44ef33c527aab160d1b (patch) | |
tree | cd43cc3922f693c3a5a2a76ad9f5b15701ca9fb9c19fba8ee5b8ce54dfba40dc /layouts/partials | |
parent | a9d1fbc5da1d690288c04ca1637723c3c88f873305276e91d814a9583476525b (diff) | |
download | hugo-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 'layouts/partials')
-rw-r--r-- | layouts/partials/footer.gmi | 2 | ||||
-rw-r--r-- | layouts/partials/footer.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/footer.gmi b/layouts/partials/footer.gmi index 338e88e..957c9d0 100644 --- a/layouts/partials/footer.gmi +++ b/layouts/partials/footer.gmi @@ -1 +1 @@ -{{ replace $.Site.Copyright "{currentYear}" (now.Format "2006") | safeHTML }}
\ No newline at end of file +{{ replace $.Site.Copyright "{currentYear}" (now.UTC.Format "2006") | safeHTML }}
\ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 5f8ffc6..00194b2 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,3 +1,3 @@ <footer class="footer"> - <p class="footer__text">{{ replace $.Site.Copyright "{currentYear}" (now.Format "2006") }}</p> + <p class="footer__text">{{ replace $.Site.Copyright "{currentYear}" (now.UTC.Format "2006") }}</p> </footer>
\ No newline at end of file |