From d4ccc1d3c5a51b40df437827c13ec91c36192e15 Mon Sep 17 00:00:00 2001 From: Tino Hager Date: Wed, 8 Jan 2025 07:33:17 +0100 Subject: [PATCH] Poland - Add Christmas Eve from 2025 (#740) --- .../HolidayProviders/PolandHolidayProvider.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/Nager.Date/HolidayProviders/PolandHolidayProvider.cs b/src/Nager.Date/HolidayProviders/PolandHolidayProvider.cs index 26e626fb..6718977f 100644 --- a/src/Nager.Date/HolidayProviders/PolandHolidayProvider.cs +++ b/src/Nager.Date/HolidayProviders/PolandHolidayProvider.cs @@ -98,10 +98,27 @@ protected override IEnumerable GetHolidaySpecifications(in }; holidaySpecifications.AddIfNotNull(this.IndependenceDay(year)); + holidaySpecifications.AddIfNotNull(this.ChristmasEve(year)); return holidaySpecifications; } + private HolidaySpecification? ChristmasEve(int year) + { + if (year >= 2025) + { + return new HolidaySpecification + { + Date = new DateTime(year, 12, 24), + EnglishName = "Christmas Eve", + LocalName = "Wolna Wigilia", + HolidayTypes = HolidayTypes.Public + }; + } + + return null; + } + private HolidaySpecification? IndependenceDay(int year) { if (year == 2018)