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
1 changed files with 1 additions and 1 deletions

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