From 5b516239317054dc41758d99593c46d6998c76a0 Mon Sep 17 00:00:00 2001 From: Goldener Stefan <66625570+tpcgold@users.noreply.github.com> Date: Wed, 14 Feb 2024 13:50:30 +0100 Subject: [PATCH] Patch - Liechtenstein Holidays (#592) * Update LiechtensteinProvider.cs * Fix missing easterSunday --------- Co-authored-by: Tino Hager --- src/Nager.Date/PublicHolidays/LiechtensteinProvider.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Nager.Date/PublicHolidays/LiechtensteinProvider.cs b/src/Nager.Date/PublicHolidays/LiechtensteinProvider.cs index 3ae75528..f04eb815 100644 --- a/src/Nager.Date/PublicHolidays/LiechtensteinProvider.cs +++ b/src/Nager.Date/PublicHolidays/LiechtensteinProvider.cs @@ -25,12 +25,14 @@ public LiechtensteinProvider(ICatholicProvider catholicProvider) public IEnumerable GetHolidays(int year) { var countryCode = CountryCode.LI; + var easterSunday = this._catholicProvider.EasterSunday(year); var items = new List(); items.Add(new PublicHoliday(year, 1, 1, "Neujahr", "New Year's Day", countryCode, 1967)); items.Add(new PublicHoliday(year, 1, 2, "Berchtoldstag", "St. Berchtold's Day", countryCode, type: PublicHolidayType.Bank)); items.Add(new PublicHoliday(year, 1, 6, "Heilige Drei Könige", "Epiphany", countryCode)); items.Add(new PublicHoliday(year, 2, 2, "Mariä Lichtmess", "Candlemas", countryCode)); + items.Add(new PublicHoliday(easterSunday.AddDays(-47), "Fasnachtsdienstag", "Shrove Tuesday", countryCode, type: PublicHolidayType.Bank)); items.Add(new PublicHoliday(year, 3, 19, "Josefstag", "Saint Joseph's Day", countryCode)); items.Add(this._catholicProvider.GoodFriday("Karfreitag", year, countryCode).SetType(PublicHolidayType.Bank)); items.Add(this._catholicProvider.EasterMonday("Ostermontag", year, countryCode).SetLaunchYear(1642));