mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
Properly converted date strings during imports and provided default values (#15398)
This commit is contained in:
@@ -124,9 +124,9 @@ export class CipherExport {
|
||||
domain.passwordHistory = req.passwordHistory.map((ph) => PasswordHistoryExport.toDomain(ph));
|
||||
}
|
||||
|
||||
domain.creationDate = req.creationDate;
|
||||
domain.revisionDate = req.revisionDate;
|
||||
domain.deletedDate = req.deletedDate;
|
||||
domain.creationDate = req.creationDate ? new Date(req.creationDate) : null;
|
||||
domain.revisionDate = req.revisionDate ? new Date(req.revisionDate) : null;
|
||||
domain.deletedDate = req.deletedDate ? new Date(req.deletedDate) : null;
|
||||
return domain;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user