corrects time formatting