1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-11 13:53:34 +00:00

Fixed date conversion issue when importing (#15434)

This commit is contained in:
SmithThe4th
2025-07-03 11:12:08 -04:00
committed by GitHub
parent 0311d0aaab
commit 522acf5718

View File

@@ -22,7 +22,7 @@ export class PasswordHistoryExport {
static toDomain(req: PasswordHistoryExport, domain = new Password()) {
domain.password = req.password != null ? new EncString(req.password) : null;
domain.lastUsedDate = req.lastUsedDate;
domain.lastUsedDate = req.lastUsedDate ? new Date(req.lastUsedDate) : null;
return domain;
}