Correctly show current backup asset date when createdAt is in the year of 1970

This commit is contained in:
Alex Tran
2023-01-22 22:40:56 -06:00
parent 171ba84741
commit 3aab8ccb4a
2 changed files with 12 additions and 9 deletions

View File

@@ -274,7 +274,9 @@ class BackupService {
setCurrentUploadAssetCb(
CurrentUploadAsset(
id: entity.id,
createdAt: entity.createDateTime,
createdAt: entity.createDateTime.year == 1970
? entity.modifiedDateTime
: entity.createDateTime,
fileName: originalFileName,
fileType: _getAssetType(entity.type),
),