This commit is contained in:
Alexey Kulish 2016-08-13 10:55:47 +03:00
parent 1d84491073
commit 9bc931bcf7

View file

@ -154,18 +154,18 @@ public class OpeningHoursParser {
for (OpeningHoursRule r : rules) {
if (r.containsPreviousDay(cal) && r.containsMonth(cal)) {
if (r.isOpenedForTime(cal, true)) {
ruleOpen = r.toRuleString(true);
ruleOpen = r.toLocalRuleString();
} else {
ruleClosed = r.toRuleString(true);
ruleClosed = r.toLocalRuleString();
}
}
}
for (OpeningHoursRule r : rules) {
if (r.containsDay(cal) && r.containsMonth(cal)) {
if (r.isOpenedForTime(cal, false)) {
ruleOpen = r.toRuleString(true);
ruleOpen = r.toLocalRuleString();
} else {
ruleClosed = r.toRuleString(true);
ruleClosed = r.toLocalRuleString();
}
}
}