Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0bcdbf6

Browse files
committed
fix date format
1 parent2b996bd commit0bcdbf6

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+
importdayjsfrom"dayjs";
2930

3031
constOrgName=styled.div`
3132
display: flex;
@@ -257,7 +258,7 @@ function OrganizationSetting() {
257258
onClick:()=>history.push(buildOrgId((recordasDataItemInfo).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-
returnnewDate(createdAt*1000).toLocaleDateString();
282+
returndayjs.unix(createdAt).fromNow();
282283
},
283284
},
284285
{
@@ -287,7 +288,7 @@ function OrganizationSetting() {
287288
width:"150px",
288289
render:(updatedAt:number)=>{
289290
if(!updatedAt)return"-";
290-
returnnewDate(updatedAt*1000).toLocaleDateString();
291+
returndayjs.unix(updatedAt).fromNow();
291292
},
292293
},
293294
{title:" ",dataIndex:"operation",width:"208px"},

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp