Corrected handling of midnight

Bar height is now "12" in 12 hour mode at midnight, instead of height "0"