OSDN Git Service

enexインポート時にNoteResourceAttributesのTimeStampを正しくパースできていなかった問題を修正。
authoryuki <kimaira7@gmail.com>
Sat, 18 Oct 2014 09:40:18 +0000 (18:40 +0900)
committeryuki <kimaira7@gmail.com>
Sat, 18 Oct 2014 09:40:18 +0000 (18:40 +0900)
src/cx/fbn/nevernote/xml/ImportEnex.java

index 306c39e..a16cf6a 100644 (file)
@@ -294,7 +294,7 @@ public class ImportEnex {
                                if (reader.name().equalsIgnoreCase("Latitude")) \r
                                        attributes.setLatitude(doubleValue());          \r
                                if (reader.name().equalsIgnoreCase("Timestamp")) \r
-                                       attributes.setTimestamp(longValue());           \r
+                                       attributes.setTimestamp(datetimeValue());\r
                                if (reader.name().equalsIgnoreCase("Attachment")) \r
                                        attributes.setAttachment(booleanValue());               \r
                                if (reader.name().equalsIgnoreCase("ClientWillIndex")) \r
@@ -312,9 +312,7 @@ public class ImportEnex {
        private String textValue() {\r
                return reader.readElementText();\r
        }\r
-       private long longValue() {\r
-               return new Long(textValue());\r
-       }\r
+       \r
        private long datetimeValue() {\r
                Date d;\r
                String time = textValue();\r