fixes some time parsing