fix time parse bug