mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 14:53:33 +00:00
Fixed date conversion issue when importing (#15434)
This commit is contained in:
@@ -22,7 +22,7 @@ export class PasswordHistoryExport {
|
|||||||
|
|
||||||
static toDomain(req: PasswordHistoryExport, domain = new Password()) {
|
static toDomain(req: PasswordHistoryExport, domain = new Password()) {
|
||||||
domain.password = req.password != null ? new EncString(req.password) : null;
|
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;
|
return domain;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user