add logic for hours < 10 to add a leading zero