BUGFIX gpx time format

git-svn-id: https://osmand.googlecode.com/svn/trunk@473 e29c36b1-1cfa-d876-8d93-3434fc2bb7b8
This commit is contained in:
vics001 2010-08-25 11:13:38 +00:00
parent cae2fec932
commit b5df3a527c

View file

@ -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<String, List<List<TrkPt>>> 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$