mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-24 12:06:15 +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) => {
|
||||
const ph = new PasswordHistoryView();
|
||||
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;
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user