Source:
<code>private void putChangeWebsiteActivityInRow(final ChangeRequest activity, final List<String> currRow, final List<CertificationBodyDTO> activeAcbs, final Date currentDate) { currRow.set(DEVELOPER_NAME, activity.getDeveloper().getName()); currRow.set(DEVELOPER_CONTACT_NAME, activity.getDeveloper().getContact().getFullName()); currRow.set(DEVELOPER_CONTACT_EMAIL, activity.getDeveloper().getContact().getEmail()); currRow.set(DEVELOPER_CONTACT_PHONE_NUMBER, activity.getDeveloper().getContact().getPhoneNumber()); currRow.set(CHANGE_REQUEST_TYPE, activity.getChangeRequestType().getName()); currRow.set(CHANGE_REQUEST_STATUS, activity.getCurrentStatus().getChangeRequestStatusType().getName()); currRow.set(CHANGE_REQUEST_COMMENT, activity.getCurrentStatus().getComment()); currRow.set(CHANGE_REQUEST_DATE, Util.getTimestampFormatter().format(activity.getCurrentStatus().getStatusChangeDate())); <START> Date changeRequestDate = activity.getCurrentStatus().getStatusChangeDate(); <END> long daysOpen = ((currentDate.getTime() - changeRequestDate.getTime()) / MILLIS_PER_DAY); currRow.set(CHANGE_REQUEST_DAYS_OPEN, Double.toString(daysOpen)); for (int i = 0; i < activeAcbs.size(); i++) { boolean isRelevant = false; for (CertificationBody acb : activity.getCertificationBodies()) { if (activeAcbs.get(i).getId().equals(acb.getId())) { isRelevant = true; } } currRow.set(ONC_ACB_START + i, isRelevant ? "Relevant" : "Not relevant"); } }</code><technical_language>Is activity.getCurrentStatus().getStatusChangedDate() date of status change? I read not. I thought wanted creation date of change request here</technical_language>

Target:
private void putChangeWebsiteActivityInRow(final ChangeRequest activity, final List<String> currRow, final List<CertificationBodyDTO> activeAcbs, final Date currentDate) { currRow.set(DEVELOPER_NAME, activity.getDeveloper().getName()); currRow.set(DEVELOPER_CODE, activity.getDeveloper().getDeveloperCode()); currRow.set(DEVELOPER_CONTACT_NAME, activity.getDeveloper().getContact().getFullName()); currRow.set(DEVELOPER_CONTACT_EMAIL, activity.getDeveloper().getContact().getEmail()); currRow.set(DEVELOPER_CONTACT_PHONE_NUMBER, activity.getDeveloper().getContact().getPhoneNumber()); currRow.set(CR_TYPE, activity.getChangeRequestType().getName()); currRow.set(CR_STATUS, activity.getCurrentStatus().getChangeRequestStatusType().getName()); currRow.set(CR_DATE, getTimestampFormatter().format(activity.getSubmittedDate())); currRow.set(CR_LATEST_DATE, getTimestampFormatter().format(activity.getCurrentStatus().getStatusChangeDate())); currRow.set(CR_LATEST_COMMENT, activity.getCurrentStatus().getComment()); Date changeRequestDate = activity.getSubmittedDate(); long daysOpen = ((currentDate.getTime() - changeRequestDate.getTime()) / MILLIS_PER_DAY); currRow.set(CHANGE_REQUEST_DAYS_OPEN, Double.toString(daysOpen)); Date changeRequestLatestDate = activity.getCurrentStatus().getStatusChangeDate(); long daysLatestOpen = ((currentDate.getTime() - changeRequestLatestDate.getTime()) / MILLIS_PER_DAY); currRow.set(CHANGE_REQUEST_LATEST_DAYS_OPEN, Double.toString(daysLatestOpen)); for (int i = 0; i < activeAcbs.size(); i++) { boolean isRelevant = false; for (CertificationBody acb : activity.getCertificationBodies()) { if (activeAcbs.get(i).getId().equals(acb.getId())) { isRelevant = true; } } currRow.set(ONC_ACB_START + i, isRelevant ? "Applicable" : "Not Applicable"); } }