Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0bcdbf6

Browse files
committed
fix date format
1 parent 2b996bd commit 0bcdbf6

File tree

1 file changed

+4
-3
lines changed
  • client/packages/lowcoder/src/pages/setting/organization

1 file changed

+4
-3
lines changed

‎client/packages/lowcoder/src/pages/setting/organization/orgList.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import { useWorkspaceManager } from "util/useWorkspaceManager";
2626
import { Org } from "constants/orgConstants";
2727
import { useState } from "react";
2828
import { SwapOutlined } from "@ant-design/icons";
29+
import dayjs from "dayjs";
2930

3031
const OrgName = styled.div`
3132
display: flex;
@@ -257,7 +258,7 @@ function OrganizationSetting() {
257258
onClick: () => history.push(buildOrgId((record as DataItemInfo).id)),
258259
})}
259260
columns={[
260-
{
261+
{
261262
title: trans("orgSettings.orgName"),
262263
dataIndex: "orgName",
263264
ellipsis: true,
@@ -278,7 +279,7 @@ function OrganizationSetting() {
278279
width: "150px",
279280
render: (createdAt: number) => {
280281
if (!createdAt) return "-";
281-
return new Date(createdAt * 1000).toLocaleDateString();
282+
return dayjs.unix(createdAt).fromNow();
282283
},
283284
},
284285
{
@@ -287,7 +288,7 @@ function OrganizationSetting() {
287288
width: "150px",
288289
render: (updatedAt: number) => {
289290
if (!updatedAt) return "-";
290-
return new Date(updatedAt * 1000).toLocaleDateString();
291+
return dayjs.unix(updatedAt).fromNow();
291292
},
292293
},
293294
{ title: " ", dataIndex: "operation", width: "208px" },

0 commit comments

Comments
 (0)