From d2572480c5272a69aa4a5a1d9e2db6ecbbd59469 Mon Sep 17 00:00:00 2001 From: Shingo Omura Date: Fri, 28 Oct 2022 12:51:16 +0900 Subject: Respect timezone even when enableLastMod and dateFormat is set --- layouts/issues/single.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layouts/issues/single.html') diff --git a/layouts/issues/single.html b/layouts/issues/single.html index 402c794..0dd8052 100644 --- a/layouts/issues/single.html +++ b/layouts/issues/single.html @@ -21,7 +21,7 @@

{{ T "lastChecked" }}: {{ if .Site.Params.dateFormat }} - {{ .Lastmod.UTC.Format .Site.Params.dateFormat }} + {{ .Lastmod.Format .Site.Params.dateFormat }} {{ else }} {{ .Lastmod.Format "January 2, 2006 at 3:04 PM" }} {{ end }} -- cgit v1.2.3-70-g09d2