diff --git a/OsmAnd/src/net/osmand/plus/development/OsmandDevelopmentPlugin.java b/OsmAnd/src/net/osmand/plus/development/OsmandDevelopmentPlugin.java index 885d1de8c9..987fd0352f 100644 --- a/OsmAnd/src/net/osmand/plus/development/OsmandDevelopmentPlugin.java +++ b/OsmAnd/src/net/osmand/plus/development/OsmandDevelopmentPlugin.java @@ -130,14 +130,9 @@ public class OsmandDevelopmentPlugin extends OsmandPlugin { pref = new Preference(app); pref.setTitle(R.string.day_night_info); if (sunriseSunset != null) { - //SimpleDateFormat prt = new SimpleDateFormat("dd.MM.yyyy HH:mm"); - //pref.setSummary(activity.getString(R.string.day_night_info_description, prt.format(sunriseSunset.getSunrise()), - // prt.format(sunriseSunset.getSunset()))); - //new approach for previous 3 lines from Issue 1313 - DateFormat format = SimpleDateFormat.getDateTimeInstance(); - String sunrise = format.format(sunriseSunset.getSunrise()); - String sunset = format.format(sunriseSunset.getSunset()); - pref.setSummary(activity.getString(R.string.day_night_info_description, sunrise, sunset)); + SimpleDateFormat prt = new SimpleDateFormat("dd.MM.yyyy HH:mm"); + pref.setSummary(activity.getString(R.string.day_night_info_description, prt.format(sunriseSunset.getSunrise()), + prt.format(sunriseSunset.getSunset()))); } else { pref.setSummary(activity.getString(R.string.day_night_info_description, "null", "null"));