Skip to content

fix(ES): match CB, MC and VC regional days to the BOE tables 2018-2027 - #738

Open
Asimmirzac wants to merge 2 commits into
commenthol:masterfrom
Asimmirzac:es-cb-mc-vc-boe
Open

Asimmirzac wants to merge 2 commits into
commenthol:masterfrom
Asimmirzac:es-cb-mc-vc-boe

Conversation

@Asimmirzac

@Asimmirzac Asimmirzac commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Día de las Instituciones de Cantabria: 28 July (was 28 June).
  • Days Cantabria chose in years when its own days fell on a Sunday: Easter Monday 2019, 2020 and 2024; Santiago Apóstol 2019 and 2024; Monday 9 December 2019.
  • Removed days the BOE does not list: Maundy Thursday 2018, La Bien Aparecida on Monday 16 September 2019 and 2024, and Monday 7 December 2020.

ES-MC

  • Added Día de la Región de Murcia, 9 June. In 2019 it was Monday 10 June. In 2024 (a Sunday) there was no replacement day.
  • Added the Monday substitutes Murcia took: 7 January 2019, 2 January 2023 and 9 December 2024.
  • San José (Saturday 19 March 2022) was not on Murcia's 2022 list.

ES-VC

  • Added Día de la Comunitat Valenciana, 9 October.
  • 2022: Maundy Thursday instead of the 26 December substitute.
  • 2027: San Juan is not on the list.

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 with npx mocha test/all.mocha.js --writetests --countries ES (only ES-CB/MC/VC-*.json changed), npm test (5711 passing) and npx eslint.

Prepared with AI assistance (Claude Code).

🤖 Generated with Claude Code

Asimmirzac and others added 2 commits December 2, 2026 14:40
- 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

No deployments
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.

[ES] Cantabria's regional day is 28 July (coded 28 June); Murcia (9 June) and Valencia (9 October) are missing

1 participant