Skip to content

Commit

Permalink
isBankHoliday(offset, filename) now really uses the filename.
Browse files Browse the repository at this point in the history
Closes: openhab#1374
Signed-off-by: Roland Rosenfeld <roland@spinnaker.de>
  • Loading branch information
RolandRosenfeld committed Feb 24, 2020
1 parent 1cb17e1 commit 941b197
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public static boolean isBankHoliday(ZonedDateTime day) {

@ActionDoc(text = "checks if today plus or minus a given offset is bank holiday from a given userfile")
public static boolean isBankHoliday(int offset, String filename) {
return isBankHoliday(ZonedDateTime.now().plusDays(offset));
return isBankHoliday(ZonedDateTime.now().plusDays(offset), filename);
}

@ActionDoc(text = "checks a given day is bank holiday from a given userfile")
Expand Down

0 comments on commit 941b197

Please sign in to comment.