Parse the time string to make it pretty