Skip to content

Commit

Permalink
United Kingdom - Fix multiple New Year's Day (#708)
Browse files Browse the repository at this point in the history
Merge entries for the same day
  • Loading branch information
tinohager authored Oct 21, 2024
1 parent d4069b1 commit 9bbe320
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions src/Nager.Date/HolidayProviders/UnitedKingdomHolidayProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,24 +68,7 @@ protected override IEnumerable<HolidaySpecification> GetHolidaySpecifications(in
EnglishName = "New Year's Day",
LocalName = "New Year's Day",
HolidayTypes = HolidayTypes.Public,
SubdivisionCodes = ["GB-NIR"]
},
new HolidaySpecification
{
Date = new DateTime(year, 1, 1),
EnglishName = "New Year's Day",
LocalName = "New Year's Day",
HolidayTypes = HolidayTypes.Public,
SubdivisionCodes = ["GB-ENG", "GB-WLS"],
ObservedRuleSet = mondayObservedRuleSet
},
new HolidaySpecification
{
Date = new DateTime(year, 1, 1),
EnglishName = "New Year's Day",
LocalName = "New Year's Day",
HolidayTypes = HolidayTypes.Public,
SubdivisionCodes = ["GB-SCT"],
SubdivisionCodes = ["GB-ENG", "GB-NIR", "GB-SCT", "GB-WLS"],
ObservedRuleSet = mondayObservedRuleSet
},
new HolidaySpecification
Expand Down

0 comments on commit 9bbe320

Please sign in to comment.