Skip to content

Commit

Permalink
Australia - Fix Friday before AFL Grand Final for 2024 (#721)
Browse files Browse the repository at this point in the history
* Cleanup code

* Add missing date for 2024 Friday before AFL Grand Final
  • Loading branch information
tinohager authored Nov 15, 2024
1 parent bd26c34 commit f2c3d5b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Nager.Date/HolidayProviders/AustraliaHolidayProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,6 @@ protected override IEnumerable<HolidaySpecification> GetHolidaySpecifications(in
var firstMondayInOctober = DateHelper.FindDay(year, Month.October, DayOfWeek.Monday, Occurrence.First);
var firstTuesdayInNovember = DateHelper.FindDay(year, Month.November, DayOfWeek.Tuesday, Occurrence.First);

//var newYearsDay = new DateTime(year, 1, 1).Shift(saturday => saturday.AddDays(2), sunday => sunday.AddDays(1));
//var christmasDay = new DateTime(year, 12, 25).Shift(saturday => saturday.AddDays(2), sunday => sunday.AddDays(2));
//var boxingDay = new DateTime(year, 12, 26).Shift(saturday => saturday.AddDays(2), sunday => sunday.AddDays(2));
//var australiaDay = new DateTime(year, 1, 26).Shift(saturday => saturday.AddDays(2), sunday => sunday.AddDays(1));

var weekendObservedRuleSet = new ObservedRuleSet
{
Saturday = date => date.AddDays(2), Sunday = date => date.AddDays(1),
Expand Down Expand Up @@ -332,6 +327,7 @@ private HolidaySpecification[] MonarchBirthday(int year)
case 2019:
case 2021:
case 2023:
case 2024:
{
var lastFridayInSeptember = DateHelper.FindLastDay(year, Month.September, DayOfWeek.Friday);

Expand Down

0 comments on commit f2c3d5b

Please sign in to comment.