chore(backup-restore): using ctime for Windows compatibility

This commit is contained in:
Chareice 2024-03-08 20:38:01 +08:00
parent 0bb0396754
commit e7e37b3634
No known key found for this signature in database

View File

@ -73,7 +73,7 @@ export class Dumper extends AppMigrator {
if (backupFileStat.isFile()) { if (backupFileStat.isFile()) {
return { return {
name: fileName, name: fileName,
createdAt: backupFileStat.birthtime, createdAt: backupFileStat.ctime,
fileSize: humanFileSize(backupFileStat.size), fileSize: humanFileSize(backupFileStat.size),
status: 'ok', status: 'ok',
} as BackUpStatusOk; } as BackUpStatusOk;