fixes time format