nager/Nager.Date

Australia - Easter Sunday missing for some states

Closed this issue · 6 comments

Affected country

Australia

Affected public holiday

Easter Sunday

Source of the information

https://www.qld.gov.au/recreation/travel/holidays/public

More information

All states have nominated Easter Sunday as a public holiday. E.g. Queensland link shown above.

The API incorrectly provides the date only for: ACT, NSW, VIC and WA.

It is currently national, so the simplest fix would seem to be to simply remove the 'Counties' specification.

hat would mean that from 2017 the holiday should apply to the whole of australia

private HolidaySpecification EasterSunday(int year)
{
var holidaySpecification = this._catholicProvider.EasterSunday("Easter Sunday", year);
var counties = new [] { "AU-ACT", "AU-NSW", "AU-VIC" };
if (year >= 2022)
{
counties = ["AU-ACT", "AU-NSW", "AU-VIC", "AU-WA"];
}
holidaySpecification.SubdivisionCodes = counties;
return holidaySpecification;
}

I have check this source -> https://www.fairwork.gov.au/employment-conditions/public-holidays

ACT NSW NT QLD SA TAS VIC WA
2021 - - - -
2022 - - -
2023 - -
2024 -
2025 -

It looks in Tasmania Easter Sunday is not a public holiday.
Addition: with the waybackMachine i add the info for 2022 and 2021

Wow! I actually live in Tasmania and I had no idea. How bizarre!

Hi, i have push a pull request can you check it please

Looks good to me. Thanks.

i have published a new version