diff --git a/components/org.wso2.openbanking.cds.consent.extensions/src/main/java/org/wso2/openbanking/cds/consent/extensions/admin/impl/CDSConsentAdminHandler.java b/components/org.wso2.openbanking.cds.consent.extensions/src/main/java/org/wso2/openbanking/cds/consent/extensions/admin/impl/CDSConsentAdminHandler.java index eaffd4bb..a8cbd0d1 100644 --- a/components/org.wso2.openbanking.cds.consent.extensions/src/main/java/org/wso2/openbanking/cds/consent/extensions/admin/impl/CDSConsentAdminHandler.java +++ b/components/org.wso2.openbanking.cds.consent.extensions/src/main/java/org/wso2/openbanking/cds/consent/extensions/admin/impl/CDSConsentAdminHandler.java @@ -183,7 +183,7 @@ public void handleConsentAmendmentHistoryRetrieval(ConsentAdminData consentAdmin consentHistoryResource.getDetailedConsentResource(); consentResourceJSON.appendField("historyId", result.getKey()); consentResourceJSON.appendField("amendedReason", consentHistoryResource.getReason()); - consentResourceJSON.appendField("amendedTime", detailedConsentResource.getUpdatedTime()); + consentResourceJSON.appendField("amendedTime", consentHistoryResource.getTimestamp()); consentResourceJSON.appendField("previousConsentData", this.detailedConsentToJSON(detailedConsentResource)); consentHistory.add(consentResourceJSON);