Fix time printing function.