Skip to content

[Feat]: Add Create/Update Time column on the Orgs Page #1806

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jul 1, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix date format
  • Loading branch information
iamfaran committed Jun 24, 2025
commit 0bcdbf622253f4184a33072793def9fa2bbc9eda
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import { useWorkspaceManager } from "util/useWorkspaceManager";
import { Org } from "constants/orgConstants";
import { useState } from "react";
import { SwapOutlined } from "@ant-design/icons";
import dayjs from "dayjs";

const OrgName = styled.div`
display: flex;
Expand Down Expand Up @@ -257,7 +258,7 @@ function OrganizationSetting() {
onClick: () => history.push(buildOrgId((record as DataItemInfo).id)),
})}
columns={[
{
{
title: trans("orgSettings.orgName"),
dataIndex: "orgName",
ellipsis: true,
Expand All @@ -278,7 +279,7 @@ function OrganizationSetting() {
width: "150px",
render: (createdAt: number) => {
if (!createdAt) return "-";
return new Date(createdAt * 1000).toLocaleDateString();
return dayjs.unix(createdAt).fromNow();
},
},
{
Expand All @@ -287,7 +288,7 @@ function OrganizationSetting() {
width: "150px",
render: (updatedAt: number) => {
if (!updatedAt) return "-";
return new Date(updatedAt * 1000).toLocaleDateString();
return dayjs.unix(updatedAt).fromNow();
},
},
{ title: " ", dataIndex: "operation", width: "208px" },
Expand Down