diff --git a/OsmAnd/src/net/osmand/plus/resources/ResourceManager.java b/OsmAnd/src/net/osmand/plus/resources/ResourceManager.java index 5eb9feb502..dca3f943c2 100644 --- a/OsmAnd/src/net/osmand/plus/resources/ResourceManager.java +++ b/OsmAnd/src/net/osmand/plus/resources/ResourceManager.java @@ -403,7 +403,7 @@ public class ResourceManager { if (file.exists() && file.canRead()) { File[] lf = file.listFiles(); if (lf != null) { - java.text.DateFormat dateFormat = DateFormat.getDateFormat(context); + java.text.DateFormat dateFormat = getDateFormat(); for (File f : lf) { if (f.isDirectory()) { String lang = f.getName().replace("-tts", ""); @@ -429,7 +429,7 @@ public class ResourceManager { if (file.exists() && file.canRead()) { File[] lf = file.listFiles(); if (lf != null) { - java.text.DateFormat dateFormat = DateFormat.getDateFormat(context); + java.text.DateFormat dateFormat = getDateFormat(); for (File f : lf) { if (!f.isDirectory()) { indexFileNames.put(f.getName(), dateFormat.format(f.lastModified())); @@ -671,7 +671,7 @@ public class ResourceManager { if (hasWorldBasemap && worldBasemapMini != null) { files.remove(worldBasemapMini); } - java.text.DateFormat dateFormat = DateFormat.getDateFormat(context); + java.text.DateFormat dateFormat = getDateFormat(); for (File f : files) { progress.startTask(context.getString(R.string.indexing_map) + " " + f.getName(), -1); //$NON-NLS-1$ try {