[SOLVED] Bug in date rendering?

All the dates in my posts get rendered such that the month and day are the same. e.g. 2006-07-23 is rendering as July 7th 2006, and 2006-08-17 is rendering as August 8th 2006. I am using Incorporated Theme is that makes a difference.

hugo version
Hugo Static Site Generator v0.16-DEV BuildDate: 2016-02-06T12:14:17-05:00

The date format lies in the templates, so yes. It is @digitalcraftsman 's theme, I believe.

This theme is not mine. But I found the issue. The date in the layouts/_default/summary.html should be formatted as follows:

{{ .Date.Format "January 2, 2006" }}

Note the 2 after January. The 1 caused that the nth day in the month is equal to the nth month, e.g. 1st January, 2nd February…

@trans either open an issue in the repository that I linked below or fix it yourself.

1 Like

Thanks! I will do both.