diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2012-11-16 20:02:01 +0100 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2012-11-16 20:02:01 +0100 |
| commit | 763ffba75525e7c5c5c1244485e408841d405e7d (patch) | |
| tree | 977ea5dd796a9a0621dd7ced61e1ab00ad59b45c /main/src/cgeo/geocaching/export/FieldnoteExport.java | |
| parent | a5b0910b8c841895dfc28cc45ed59d4f8838e1cd (diff) | |
| download | cgeo-763ffba75525e7c5c5c1244485e408841d405e7d.zip cgeo-763ffba75525e7c5c5c1244485e408841d405e7d.tar.gz cgeo-763ffba75525e7c5c5c1244485e408841d405e7d.tar.bz2 | |
code cleanup: fix some Lint warnings
Diffstat (limited to 'main/src/cgeo/geocaching/export/FieldnoteExport.java')
| -rw-r--r-- | main/src/cgeo/geocaching/export/FieldnoteExport.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/export/FieldnoteExport.java b/main/src/cgeo/geocaching/export/FieldnoteExport.java index 41ec44c..465641f 100644 --- a/main/src/cgeo/geocaching/export/FieldnoteExport.java +++ b/main/src/cgeo/geocaching/export/FieldnoteExport.java @@ -30,6 +30,7 @@ import java.io.Writer; import java.text.SimpleDateFormat; import java.util.Date; import java.util.List; +import java.util.Locale; /** * Exports offline-logs in the Groundspeak Field Note format.<br> @@ -40,7 +41,7 @@ import java.util.List; */ class FieldnoteExport extends AbstractExport { private static final File exportLocation = new File(Environment.getExternalStorageDirectory().getAbsolutePath() + "/field-notes"); - private static final SimpleDateFormat fieldNoteDateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); + private static final SimpleDateFormat fieldNoteDateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'", Locale.US); protected FieldnoteExport() { super(getString(R.string.export_fieldnotes)); @@ -161,7 +162,7 @@ class FieldnoteExport extends AbstractExport { if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) { exportLocation.mkdirs(); - SimpleDateFormat fileNameDateFormat = new SimpleDateFormat("yyyyMMddHHmmss"); + SimpleDateFormat fileNameDateFormat = new SimpleDateFormat("yyyyMMddHHmmss", Locale.US); exportFile = new File(exportLocation.toString() + '/' + fileNameDateFormat.format(new Date()) + ".txt"); OutputStream os; |
