Fix leading zeros being removed from times