Repository navigation
fix(ES): match CB, MC and VC regional days to the BOE tables 2018-2027 - #738
Open
Asimmirzac wants to merge 2 commits into
Open
Asimmirzac wants to merge 2 commits into
Asimmirzac wants to merge 2 commits into
Conversation
- ES-CB: Día de las Instituciones de Cantabria is 28 July, not 28 June. Add the days Cantabria chose in 2019, 2020 and 2024 (Easter Monday, Santiago Apóstol, Monday after the Immaculate Conception) and drop the Monday substitutes the BOE does not list (Bien Aparecida 2019 and 2024, Constitution Day 2020). - ES-MC: add Día de la Región de Murcia (9 June; Monday 10 June in 2019) and the Monday substitutes of 2019, 2023 and 2024. San José was not a holiday in 2022. - ES-VC: add Día de la Comunitat Valenciana (9 October), Maundy Thursday 2022 instead of the 26 December substitute, and no San Juan in 2027. Closes commenthol#737 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
BOE-A-2017-11639 does not list 29 March 2018 for Cantabria. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #737.
I compared
getHolidays()for ES-CB, ES-MC and ES-VC with the annex tables of the yearly BOE resolutions for 2018–2027 (2019: BOE-A-2018-14369, 2020: BOE-A-2019-14552, 2021: BOE-A-2020-13343, 2022: BOE-A-2021-17113, 2023: BOE-A-2022-16755, 2024: BOE-A-2023-22014, 2025: BOE-A-2024-21316, 2026: BOE-A-2025-21667, 2027: BOE-A-2026-21254, 2018: BOE-A-2017-11639). After this change the public holidays match the BOE rows for every year, apart from national holidays that fall on a Sunday, which the library lists anyway.ES-CB
ES-MC
ES-VC
Years before 2018 are not changed except for the three fixed dates (28 July, 9 June, 9 October).
The year-specific substitute days are separate entries, so on those dates the national "observance" substitute entry is still listed next to the public one (e.g. 2023-01-02 in ES-MC). If you would rather have the regional rule override the national one, I can change that, but then the type would apply to every year, including ones I could not check.
I ran
npm run yaml, regenerated the fixtures withnpx mocha test/all.mocha.js --writetests --countries ES(onlyES-CB/MC/VC-*.jsonchanged),npm test(5711 passing) andnpx eslint.Prepared with AI assistance (Claude Code).
🤖 Generated with Claude Code