Summer Time Bug Fix

The problem The date: variable in HUGO needs to be actual, not in the past, for the post to register. I don’t know yet why but that isn’t important, only the solution is so… The correct post date format in YAML is: date: 2025-04-01T19:37:18+02:00 The last part of the string +02:00 indicates UTC1 plus 2 hours, which for my current location is CET +1 2. The first solution After a little searching, for the wrong thing (UTC offsets) I came across the Python class: time and the functiontime.daylight specifically. This boolean function returns True if it is Summer Time and False if it is Winter Time, which allows to check the state in an if statement, thus: ...

1 April 2025 · 2 min · Mark

Summer Time Bug

A bit of a post winter bug My little Hugo post creation app stopped working correctly this morning. The reason was the date formatting in the post date: variable. The code had the date formatted for GMT + 1 and now we have GMT + 2. I haven’t checked what was happening, but assume the date must be in the future for it to fail to post. I can’t see it as a date in the past, which seems more logical given +1 instead of +2. ...

30 March 2025 · 1 min · Mark