fix time not properly parsed