From b5df3a527c69b37c8b67d863f65f0c620a9e5c55 Mon Sep 17 00:00:00 2001 From: vics001 Date: Wed, 25 Aug 2010 11:13:38 +0000 Subject: [PATCH] BUGFIX gpx time format git-svn-id: https://osmand.googlecode.com/svn/trunk@473 e29c36b1-1cfa-d876-8d93-3434fc2bb7b8 --- OsmAnd/src/net/osmand/activities/SavingTrackHelper.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/activities/SavingTrackHelper.java b/OsmAnd/src/net/osmand/activities/SavingTrackHelper.java index dcbcb460c2..eb56fa5ca7 100644 --- a/OsmAnd/src/net/osmand/activities/SavingTrackHelper.java +++ b/OsmAnd/src/net/osmand/activities/SavingTrackHelper.java @@ -45,6 +45,8 @@ public class SavingTrackHelper extends SQLiteOpenHelper { public final static Log log = LogUtil.getLog(SavingTrackHelper.class); + public final static String GPX_TIME_FORMAT = "yyyy-MM-dd'T'HH:mm:ss'Z"; + private String updateScript; private long lastTimeUpdated = 0; @@ -168,7 +170,7 @@ public class SavingTrackHelper extends SQLiteOpenHelper { } public static String saveToXMLFiles(File dir, Map>> data, Context ctx){ - SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss"); //$NON-NLS-1$ + SimpleDateFormat format = new SimpleDateFormat(GPX_TIME_FORMAT); //$NON-NLS-1$ try { for (String f : data.keySet()) { File fout = new File(dir, f + ".gpx"); //$NON-NLS-1$