Hugo does not respect timezone when generating published posts

It’s 0:54 on 16th of June 2021. I have a post with published date 2021-06-16. Executing hugo does not generate that post. I’m in CEST, hugo seems to be using GMT or UTC for date resolution. How can I change that without having to wait until 2am or changing to publication date.

Thank you.

Are you including the timezone in your publish date? For me (GMT +10) it look like 2021-06-16T11:09:29+10:00.

(I’m not good at remembering that format, so I’ve created a text expansion in aText.)

1 Like