Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
98c6b1e655
2 changed files with 3 additions and 3 deletions
|
@ -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 "";
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue