Skip to content

EN_NZHolidayStrategy: added Matariki and fixed 2011 Easter-Anzac clash#230

Merged
joaomatossilva merged 3 commits intojoaomatossilva:masterfrom
b-h-mck:master
Feb 11, 2025
Merged

EN_NZHolidayStrategy: added Matariki and fixed 2011 Easter-Anzac clash#230
joaomatossilva merged 3 commits intojoaomatossilva:masterfrom
b-h-mck:master

Conversation

@b-h-mck
Copy link
Contributor

@b-h-mck b-h-mck commented Feb 10, 2025

  • Added Matariki as a public holiday in New Zealand. Unfortunately it's a floating holiday with no readily-available algorithm, so I added it as a year map from 2022 (when it started) to 2035.
  • Fixed (and added unit tests for) a bug where the NZ culture would crash for 2011 dates. This was happening because Easter Monday and Anzac Day were on the same day that year, and NZ legislation doesn't allow for any shifting in that scenario. I fixed it by combining them into a single holiday with both names.

@joaomatossilva joaomatossilva merged commit 0cd46c5 into joaomatossilva:master Feb 11, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants