fix time parsing