fixed adding leading zero to time.