OSDN Git Service

fix: プログラム内部ではUTC時間で日時を管理する
[importpicture/importpicture.git] / importPicture / src / osm / jp / gpx / ElementMapTRKPT.java
index 87cd388..d8b9c79 100644 (file)
@@ -34,7 +34,7 @@ public class ElementMapTRKPT extends TreeMap<Date, Element> {
                     Node node5 = nodes4.item(i4);
                     if (node5 != null) {
                         if (node5.getNodeType() == Node.TEXT_NODE) {
-                            Date time = ImportPicture.dfuk.parse(node5.getNodeValue());
+                            Date time = ImportPicture.toUTCDate(node5.getNodeValue());
                             this.put(time, value);
                                return time;
                         }
@@ -155,6 +155,6 @@ public class ElementMapTRKPT extends TreeMap<Date, Element> {
                        }
                        lastTime = new Date(key.getTime());
                }
-               System.out.println(String.format("|                      <trkseg/> |%20s|%20s|", ImportPicture.dfuk.format(firstTime), ImportPicture.dfuk.format(lastTime)));
+               System.out.println(String.format("|                      <trkseg/> |%20s|%20s|", ImportPicture.toUTCString(firstTime), ImportPicture.toUTCString(lastTime)));
     }
 }