You could extract the first character of the time value and if it's a space rebuild it with a leading zero. Something like (my .bat skills being rusty):
set Z=%time:~0,1%
if %Z% NEQ 0 set Z=0
set newtime=%Z%%time:~1,7%
Reviewing this I realise you need to check for the digits 1 and 2 also.