From 1f8f59c3a125b52841d757862efa64fadea5fe2b Mon Sep 17 00:00:00 2001 From: life Date: Thu, 3 Mar 2016 22:00:08 +0800 Subject: [PATCH] =?UTF-8?q?Linux=20=E5=AE=A2=E6=88=B7=E7=AB=AF=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E7=9A=84=20Leanote=20=E6=97=A0=E6=B3=95=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=20Evernote=20=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/leanote/leanote/issues/316 --- public/plugins/import_evernote/import.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/public/plugins/import_evernote/import.js b/public/plugins/import_evernote/import.js index 5f823f609..cd442a610 100755 --- a/public/plugins/import_evernote/import.js +++ b/public/plugins/import_evernote/import.js @@ -111,12 +111,15 @@ var Import = { parseEachNote: function(note, callback) { var me = this; + var created = note['created'] && note['created'][0]; + var updated = note['updated'] && note['updated'][0]; + var jsonNote = { Title: note['title'][0], Tags: note['tag'] || [], Content: note['content'][0], - CreatedTime: me.parseEvernoteTime(note['created'][0]), - UpdatedTime: me.parseEvernoteTime(note['updated'][0]), + CreatedTime: me.parseEvernoteTime(created), + UpdatedTime: me.parseEvernoteTime(updated), }; // 文件保存之