Fix #3025
This commit is contained in:
parent
864dc55172
commit
60b73d8755
2 changed files with 3 additions and 3 deletions
|
@ -254,14 +254,14 @@ public class OpeningHoursParser {
|
|||
return s.substring(0, s.length() - 2);
|
||||
}
|
||||
|
||||
public String toLocalStringNoMonths() {
|
||||
public String toLocalString() {
|
||||
StringBuilder s = new StringBuilder();
|
||||
if (rules.isEmpty()) {
|
||||
return "";
|
||||
}
|
||||
|
||||
for (OpeningHoursRule r : rules) {
|
||||
s.append(r.toLocalRuleString()).append(";");
|
||||
s.append(r.toLocalRuleString()).append("; ");
|
||||
}
|
||||
|
||||
return s.substring(0, s.length() - 2);
|
||||
|
|
|
@ -248,7 +248,7 @@ public class AmenityMenuBuilder extends MenuBuilder {
|
|||
|
||||
OpeningHoursParser.OpeningHours rs = OpeningHoursParser.parseOpenedHours(amenity.getOpeningHours());
|
||||
if (rs != null) {
|
||||
vl = rs.toLocalStringNoMonths();
|
||||
vl = rs.toLocalString();
|
||||
Calendar inst = Calendar.getInstance();
|
||||
inst.setTimeInMillis(System.currentTimeMillis());
|
||||
boolean opened = rs.isOpenedForTime(inst);
|
||||
|
|
Loading…
Reference in a new issue