From e104a11f42fbd069aa15606c5f01631b07d7528c Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Sat, 18 May 2024 12:48:43 +0200 Subject: [PATCH] #582, use time.Format for date formatting --- layouts/partials/docs/date.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/docs/date.html b/layouts/partials/docs/date.html index 73d69a3..8c75361 100644 --- a/layouts/partials/docs/date.html +++ b/layouts/partials/docs/date.html @@ -3,4 +3,4 @@ Usage: partial "docs/date" (dict "Date" .Date "Format" .Site.Params.BookDateFormat) --> {{- $format := default "January 2, 2006" .Format -}} -{{- return (.Date.Format $format) -}} +{{- return (time.Format $format .Date) -}}