From ca9d190244c377c149db6feadb9e03b0e810e28a Mon Sep 17 00:00:00 2001 From: ThaminduDilshan Date: Fri, 20 Dec 2024 15:32:54 +0530 Subject: [PATCH 1/2] Fix group modified value --- features/admin.groups.v1/components/group-list.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/features/admin.groups.v1/components/group-list.tsx b/features/admin.groups.v1/components/group-list.tsx index e56c3b77a5d..83f0685551b 100644 --- a/features/admin.groups.v1/components/group-list.tsx +++ b/features/admin.groups.v1/components/group-list.tsx @@ -315,7 +315,10 @@ export const GroupList: React.FunctionComponent = (props: GroupL key: "lastModified", render: (group: GroupsInterface): ReactNode => { const now: Moment = moment(new Date()); - const receivedDate: Moment = moment(group.meta.created); + const receivedDate: Moment = moment(group.meta.lastModified ? + group.meta.lastModified : + group.meta.created + ); return t("console:common.dateTime.humanizedDateString", { date: moment.duration(now.diff(receivedDate)).humanize() From 2b1240e04858c8ebfb3c33cfc91a76c62c0dcb33 Mon Sep 17 00:00:00 2001 From: ThaminduDilshan Date: Fri, 20 Dec 2024 15:34:10 +0530 Subject: [PATCH 2/2] =?UTF-8?q?Add=20changeset=20=F0=9F=A6=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .changeset/perfect-geese-attend.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/perfect-geese-attend.md diff --git a/.changeset/perfect-geese-attend.md b/.changeset/perfect-geese-attend.md new file mode 100644 index 00000000000..516d88cab0a --- /dev/null +++ b/.changeset/perfect-geese-attend.md @@ -0,0 +1,5 @@ +--- +"@wso2is/admin.groups.v1": patch +--- + +Fix the issue of displaying group created time for the last modified in the group list view