This commit is contained in:
Victor Shcherb 2016-08-30 00:04:12 +02:00
parent 864dc55172
commit 60b73d8755
2 changed files with 3 additions and 3 deletions

View file

@ -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);

View file

@ -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);