fix edit osm poi opening hours formatting
This commit is contained in:
parent
37465266aa
commit
ba396c7542
1 changed files with 3 additions and 7 deletions
|
@ -707,14 +707,10 @@ public class Algorithms {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String formatMinutesDuration(int minutes) {
|
public static String formatMinutesDuration(int minutes) {
|
||||||
if (minutes < 60) {
|
|
||||||
return String.valueOf(minutes);
|
|
||||||
} else {
|
|
||||||
int min = minutes % 60;
|
int min = minutes % 60;
|
||||||
int hours = minutes / 60;
|
int hours = minutes / 60;
|
||||||
return String.format(Locale.UK, "%02d:%02d", hours, min);
|
return String.format(Locale.UK, "%02d:%02d", hours, min);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public static <T extends Enum<T>> T parseEnumValue(T[] cl, String val, T defaultValue) {
|
public static <T extends Enum<T>> T parseEnumValue(T[] cl, String val, T defaultValue) {
|
||||||
for (T aCl : cl) {
|
for (T aCl : cl) {
|
||||||
|
|
Loading…
Reference in a new issue