Fix time format issue