found bug in sunrise / sunset debug display
This commit is contained in:
parent
3a06af938f
commit
298b13890a
2 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ public class TestSunriseSunset {
|
||||||
|
|
||||||
public static void printSunriseSunset(String date, float lat, float lon, TimeZone tz) throws ParseException {
|
public static void printSunriseSunset(String date, float lat, float lon, TimeZone tz) throws ParseException {
|
||||||
SimpleDateFormat sdf = new SimpleDateFormat("dd.MM.yyyy");
|
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"));
|
prt.setTimeZone(TimeZone.getTimeZone("GMT"));
|
||||||
Date time = sdf.parse(date);
|
Date time = sdf.parse(date);
|
||||||
Calendar calendar = Calendar.getInstance();
|
Calendar calendar = Calendar.getInstance();
|
||||||
|
|
|
@ -130,7 +130,7 @@ public class OsmandDevelopmentPlugin extends OsmandPlugin {
|
||||||
pref = new Preference(app);
|
pref = new Preference(app);
|
||||||
pref.setTitle(R.string.day_night_info);
|
pref.setTitle(R.string.day_night_info);
|
||||||
if (sunriseSunset != null) {
|
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()),
|
pref.setSummary(activity.getString(R.string.day_night_info_description, prt.format(sunriseSunset.getSunrise()),
|
||||||
prt.format(sunriseSunset.getSunset())));
|
prt.format(sunriseSunset.getSunset())));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue