Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2016-08-30 00:04:45 +02:00
commit 98c6b1e655
2 changed files with 3 additions and 3 deletions

View file

@ -254,7 +254,7 @@ public class OpeningHoursParser {
return s.substring(0, s.length() - 2); return s.substring(0, s.length() - 2);
} }
public String toLocalStringNoMonths() { public String toLocalString() {
StringBuilder s = new StringBuilder(); StringBuilder s = new StringBuilder();
if (rules.isEmpty()) { if (rules.isEmpty()) {
return ""; return "";

View file

@ -248,7 +248,7 @@ public class AmenityMenuBuilder extends MenuBuilder {
OpeningHoursParser.OpeningHours rs = OpeningHoursParser.parseOpenedHours(amenity.getOpeningHours()); OpeningHoursParser.OpeningHours rs = OpeningHoursParser.parseOpenedHours(amenity.getOpeningHours());
if (rs != null) { if (rs != null) {
vl = rs.toLocalStringNoMonths(); vl = rs.toLocalString();
Calendar inst = Calendar.getInstance(); Calendar inst = Calendar.getInstance();
inst.setTimeInMillis(System.currentTimeMillis()); inst.setTimeInMillis(System.currentTimeMillis());
boolean opened = rs.isOpenedForTime(inst); boolean opened = rs.isOpenedForTime(inst);