From b01759924c112c3d3d33538e782af70e282bbb5b Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 5 Jul 2019 13:07:52 -0400 Subject: [PATCH] support ms and s on datetime conversion --- src/importers/onepassword1PifImporter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/importers/onepassword1PifImporter.ts b/src/importers/onepassword1PifImporter.ts index 3f2420a185..56a7a76652 100644 --- a/src/importers/onepassword1PifImporter.ts +++ b/src/importers/onepassword1PifImporter.ts @@ -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; }); }