Skip to content

Commit

Permalink
fix: fix uploaded file time error infiniflow#680
Browse files Browse the repository at this point in the history
  • Loading branch information
cike8899 committed May 9, 2024
1 parent 788c91a commit 5c9dfe3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ const KnowledgeFile = () => {
},
{
title: t('uploadDate'),
dataIndex: 'create_date',
key: 'create_date',
dataIndex: 'create_time',
key: 'create_time',
render(value) {
return formatDate(value);
},
Expand Down
4 changes: 2 additions & 2 deletions web/src/pages/file-manager/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ const FileManager = () => {
},
{
title: t('uploadDate'),
dataIndex: 'create_date',
key: 'create_date',
dataIndex: 'create_time',
key: 'create_time',
render(text) {
return formatDate(text);
},
Expand Down
2 changes: 1 addition & 1 deletion web/src/pages/knowledge/knowledge-card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const KnowledgeCard = ({ item }: IProps) => {
<div className={styles.bottomLeft}>
<CalendarOutlined className={styles.leftIcon} />
<span className={styles.rightText}>
{formatDate(item.update_date)}
{formatDate(item.update_time)}
</span>
</div>
{/* <Avatar.Group size={25}>
Expand Down
2 changes: 1 addition & 1 deletion web/src/utils/date.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ export function formatDate(date: any) {
if (!date) {
return '';
}
return dayjs(date).format('DD/MM/YYYY');
return dayjs(date).format('DD/MM/YYYY HH:mm:ss');
}

0 comments on commit 5c9dfe3

Please sign in to comment.