fix time and time fmt