mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
support ms and s on datetime conversion
This commit is contained in:
@@ -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;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user