fix time format bug