Skip to content

Commit

Permalink
#582, use time.Format for date formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-shpak committed May 18, 2024
1 parent 90eab4a commit e104a11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/docs/date.html
Original file line number Diff line number Diff line change
Expand Up @@ -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) -}}

0 comments on commit e104a11

Please sign in to comment.