Fixed midnight bug

'date %l' returns "12" at midnight, which made the math on
HOUR= add up to higher than 60. I made 12 turn into 0.