fix a get time  bug