fix: Convert file created_at to ISO string format

Ensure consistent string representation of file creation timestamps across file storage and type definitions
This commit is contained in:
kangfenmao
2025-03-09 17:11:23 +08:00
parent e6c8215dd5
commit f7956a6594
3 changed files with 12 additions and 4 deletions
+3 -3
View File
@@ -174,7 +174,7 @@ class FileStorage {
origin_name,
name: uuid + ext,
path: destPath,
created_at: stats.birthtime,
created_at: stats.birthtime.toISOString(),
size: stats.size,
ext: ext,
type: fileType,
@@ -198,7 +198,7 @@ class FileStorage {
origin_name: path.basename(filePath),
name: path.basename(filePath),
path: filePath,
created_at: stats.birthtime,
created_at: stats.birthtime.toISOString(),
size: stats.size,
ext: ext,
type: fileType,
@@ -416,7 +416,7 @@ class FileStorage {
origin_name: filename,
name: uuid + ext,
path: destPath,
created_at: stats.birthtime,
created_at: stats.birthtime.toISOString(),
size: stats.size,
ext: ext,
type: fileType,