Skip to content

Commit

Permalink
Patch - Liechtenstein Holidays (#592)
Browse files Browse the repository at this point in the history
* Update LiechtensteinProvider.cs
* Fix missing easterSunday

---------

Co-authored-by: Tino Hager <tino.hager@nager.at>
  • Loading branch information
tpcgold and tinohager authored Feb 14, 2024
1 parent 042e660 commit 5b51623
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Nager.Date/PublicHolidays/LiechtensteinProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@ public LiechtensteinProvider(ICatholicProvider catholicProvider)
public IEnumerable<PublicHoliday> GetHolidays(int year)
{
var countryCode = CountryCode.LI;
var easterSunday = this._catholicProvider.EasterSunday(year);

var items = new List<PublicHoliday>();
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));
Expand Down

0 comments on commit 5b51623

Please sign in to comment.