File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
client/packages/lowcoder/src/pages/setting/organization Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ import { useWorkspaceManager } from "util/useWorkspaceManager";
26
26
import { Org } from "constants/orgConstants" ;
27
27
import { useState } from "react" ;
28
28
import { SwapOutlined } from "@ant-design/icons" ;
29
+ import dayjs from "dayjs" ;
29
30
30
31
const OrgName = styled . div `
31
32
display: flex;
@@ -257,7 +258,7 @@ function OrganizationSetting() {
257
258
onClick : ( ) => history . push ( buildOrgId ( ( record as DataItemInfo ) . id ) ) ,
258
259
} ) }
259
260
columns = { [
260
- {
261
+ {
261
262
title : trans ( "orgSettings.orgName" ) ,
262
263
dataIndex : "orgName" ,
263
264
ellipsis : true ,
@@ -278,7 +279,7 @@ function OrganizationSetting() {
278
279
width : "150px" ,
279
280
render : ( createdAt : number ) => {
280
281
if ( ! createdAt ) return "-" ;
281
- return new Date ( createdAt * 1000 ) . toLocaleDateString ( ) ;
282
+ return dayjs . unix ( createdAt ) . fromNow ( ) ;
282
283
} ,
283
284
} ,
284
285
{
@@ -287,7 +288,7 @@ function OrganizationSetting() {
287
288
width : "150px" ,
288
289
render : ( updatedAt : number ) => {
289
290
if ( ! updatedAt ) return "-" ;
290
- return new Date ( updatedAt * 1000 ) . toLocaleDateString ( ) ;
291
+ return dayjs . unix ( updatedAt ) . fromNow ( ) ;
291
292
} ,
292
293
} ,
293
294
{ title : " " , dataIndex : "operation" , width : "208px" } ,
You can’t perform that action at this time.
0 commit comments