bugfix: $QHOUR/$HHOUR were always "00" or "01"

regression some time between v5 and here
Thanks to forum user rjmcinty for reporting this bug
Merge branch 'v7-stable'