Fix a bug with rendering the hour value in debug logs.