update the decodedetails method

updates the enddate with startdate when there is both start and end time