commenthol/date-holidays

Inccorect rule for finnish new year's eve

jukkaleh-atoz opened this issue · 0 comments

FI.yaml contains the following rule for new year's eve "12-31 14:00 if sunday then 00:00":

"12-31 14:00 if sunday then 00:00":

There is no rule in Finland that eve starts at 14:00 unless it's sunday. 2023 happens to return correct date and time but for example 2021 does not.

Workaround:

  const hd = new Holidays("FI");
  hd.unsetRule("12-31 14:00 if sunday then 00:00");
  hd.setHoliday("12-31", {
    name: "Uudenvuodenaatto",
    type: "bank",
  });