1
0
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:
Kyle Spearrin 2019-07-05 13:07:52 -04:00
parent 2830121471
commit b01759924c

View File

@ -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;
});
}