fix time format issue