in reply to A would-be simple substitution...

Your $time2 is only replacing the bits that "matched", the parts unmatched are not touched.

And also in your other attempt:
$time2 =~ s/^(\d{2})(\d{2})(\d{2})\.(\d{2}).*?$/$1:$2:$3.$4/; # ^ # add anchor point