mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-25 03:10:08 +08:00
fix: Standardize file creation timestamp to ISO string format
Ensure consistent ISO string representation of file creation timestamps in both file utility and knowledge content upload
This commit is contained in:
parent
7353edda3e
commit
cf29afaa74
@ -45,7 +45,7 @@ export function getAllFiles(dirPath: string, arrayOfFiles: FileType[] = []): Fil
|
||||
count: 1,
|
||||
origin_name: name,
|
||||
type: fileType,
|
||||
created_at: new Date()
|
||||
created_at: new Date().toISOString()
|
||||
}
|
||||
|
||||
arrayOfFiles.push(fileItem)
|
||||
|
||||
@ -100,7 +100,7 @@ const KnowledgeContent: FC<KnowledgeContentProps> = ({ selectedBase }) => {
|
||||
count: 1,
|
||||
origin_name: file.name,
|
||||
type: file.type as FileTypes,
|
||||
created_at: new Date()
|
||||
created_at: new Date().toISOString()
|
||||
}))
|
||||
.filter(({ ext }) => fileTypes.includes(ext))
|
||||
console.debug('[KnowledgeContent] Uploading files:', _files, files)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user