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";
2626import { Org } from "constants/orgConstants" ;
2727import { useState } from "react" ;
2828import { SwapOutlined } from "@ant-design/icons" ;
29+ import dayjs from "dayjs" ;
2930
3031const 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" } ,
You can’t perform that action at this time.
0 commit comments