fixed bug in time format