found bug in sunrise / sunset debug display

This commit is contained in:
sonora 2012-09-02 12:29:51 +02:00
parent 3a06af938f
commit 298b13890a
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ public class TestSunriseSunset {
public static void printSunriseSunset(String date, float lat, float lon, TimeZone tz) throws ParseException {
SimpleDateFormat sdf = new SimpleDateFormat("dd.MM.yyyy");
SimpleDateFormat prt = new SimpleDateFormat("dd.MM.yyyy HH:MM");
SimpleDateFormat prt = new SimpleDateFormat("dd.MM.yyyy HH:mm");
prt.setTimeZone(TimeZone.getTimeZone("GMT"));
Date time = sdf.parse(date);
Calendar calendar = Calendar.getInstance();

View file

@ -130,7 +130,7 @@ 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");
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 {