aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/author-card.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2023-10-07 20:19:06 -0400
committertdro <tdro@noreply.example.com>2023-10-07 20:19:06 -0400
commitc83c49b0e18f0593a62a8a7754d1ff49ac097289 (patch)
treeecf67e580ce99de31816573afd88fdff5e57bfcb /themes/default/layouts/partials/author-card.html
parent6f2f44c7ff0e3ff8ffd4e6bb394a0b39c0f89adf (diff)
downloadcanory-c83c49b0e18f0593a62a8a7754d1ff49ac097289.tar.gz
canory-c83c49b0e18f0593a62a8a7754d1ff49ac097289.tar.bz2
canory-c83c49b0e18f0593a62a8a7754d1ff49ac097289.zip
themes/default: Make time and dates consistent
Don't mix local time with UTC and fix future date calculation
Diffstat (limited to 'themes/default/layouts/partials/author-card.html')
-rw-r--r--themes/default/layouts/partials/author-card.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/themes/default/layouts/partials/author-card.html b/themes/default/layouts/partials/author-card.html
index 985f53a..02ab0b2 100644
--- a/themes/default/layouts/partials/author-card.html
+++ b/themes/default/layouts/partials/author-card.html
@@ -1,5 +1,5 @@
{{- $metadata := print "public/" .Data.user "/author.json" -}}
-{{- $date := .Date.Local.Format "15:04 Jan 2 2006" -}}
+{{- $date := .Date | time.Format "Mon Jan 2 2006" -}}
{{- $host := (urls.Parse ("" | absURL)).Host -}}
@@ -66,8 +66,8 @@
</a>
</h3>
<time
- title="{{ .Date.Format "Monday, January 2 2006 at 15:04:05 MST" }}"
- datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}"
+ title="{{ .Date | time.Format "Monday January 2 2006 at 15:04:05 MST" }}"
+ datetime="{{ .Date | time.Format "2006-01-02T15:04:05Z" }}"
>
{{ $date }}
</time>