Fixed failure with hour > 23

Turns out Ruby is not actually smart enough to realize that if the hour is > 23 it should be %= 24 and the day should be ++.  It's a shame, as I just had to add special processing for it.