Inccorect rule for finnish new year's eve
jukkaleh-atoz opened this issue · 0 comments
jukkaleh-atoz commented
FI.yaml contains the following rule for new year's eve "12-31 14:00 if sunday then 00:00":
date-holidays/data/countries/FI.yaml
Line 57 in 863782a
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",
});