fix time convert method