fix bug about timeformat