mirror of
https://github.com/bitwarden/browser
synced 2025-01-27 03:35:05 +01:00
support ms and s on datetime conversion
This commit is contained in:
parent
2830121471
commit
b01759924c
@ -147,7 +147,7 @@ export class OnePassword1PifImporter extends BaseImporter implements Importer {
|
|||||||
.map((h: any) => {
|
.map((h: any) => {
|
||||||
const ph = new PasswordHistoryView();
|
const ph = new PasswordHistoryView();
|
||||||
ph.password = h.value;
|
ph.password = h.value;
|
||||||
ph.lastUsedDate = new Date(h.time * 1000);
|
ph.lastUsedDate = new Date(('' + h.time).length >= 13 ? h.time : h.time * 1000);
|
||||||
return ph;
|
return ph;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user