fixed leading zero problem for time.