changes time formatting to use strftime