From cfe4ba1d34d2b53195a12ee0391e1e6a400819d5 Mon Sep 17 00:00:00 2001 From: QuantIntellect <195442302+QuantIntellect@users.noreply.github.com> Date: Sun, 29 Nov 2026 05:09:54 +0000 Subject: [PATCH 1/4] fix(TZ): move Zanzibar Revolution Day to January 12 The schedule of the Public Holidays Act (Cap. 35 R.E. 2023) lists "Revolution Day-12th January" and "Boxing Day-26th December". The data had Zanzibar Revolution Day on January 2, and December 26 used the Christmas Day name. --- data/countries/TZ.yaml | 5 +++-- test/fixtures/TZ-2015.json | 20 ++++++++++---------- test/fixtures/TZ-2016.json | 12 ++++++------ test/fixtures/TZ-2017.json | 12 ++++++------ test/fixtures/TZ-2018.json | 12 ++++++------ test/fixtures/TZ-2019.json | 12 ++++++------ test/fixtures/TZ-2020.json | 12 ++++++------ test/fixtures/TZ-2021.json | 12 ++++++------ test/fixtures/TZ-2022.json | 12 ++++++------ test/fixtures/TZ-2023.json | 12 ++++++------ test/fixtures/TZ-2024.json | 12 ++++++------ test/fixtures/TZ-2025.json | 12 ++++++------ test/fixtures/TZ-2026.json | 12 ++++++------ test/fixtures/TZ-2027.json | 12 ++++++------ test/fixtures/TZ-2028.json | 12 ++++++------ test/fixtures/TZ-2029.json | 12 ++++++------ 16 files changed, 97 insertions(+), 96 deletions(-) diff --git a/data/countries/TZ.yaml b/data/countries/TZ.yaml index 04c07bd92..ef2710e4f 100644 --- a/data/countries/TZ.yaml +++ b/data/countries/TZ.yaml @@ -1,5 +1,6 @@ holidays: # @source http://www.ilo.org/dyn/travail/docs/2234/Public%20Holidays%20Ordinance%20-%201966%20Amendment.pdf + # @source https://web.archive.org/web/20250726035253/https://www.nps.go.tz/uploads/documents/sw-1751397436-THE%20PUBLIC%20HOLIDAYS%20ACT.pdf # @attrib https://en.wikipedia.org/wiki/Public_holidays_in_Tanzania TZ: names: @@ -14,7 +15,7 @@ holidays: days: 01-01: _name: 01-01 - 01-02: + 01-12: name: en: Zanzibar Revolution Day easter -2: @@ -46,7 +47,7 @@ holidays: 12-25: _name: 12-25 12-26: - _name: 12-25 + _name: 12-26 1 Shawwal P2D: _name: 1 Shawwal 10 Dhu al-Hijjah: diff --git a/test/fixtures/TZ-2015.json b/test/fixtures/TZ-2015.json index 2beebba26..f357d79b6 100644 --- a/test/fixtures/TZ-2015.json +++ b/test/fixtures/TZ-2015.json @@ -8,15 +8,6 @@ "rule": "01-01", "_weekday": "Thu" }, - { - "date": "2015-01-02 00:00:00", - "start": "2015-01-01T21:00:00.000Z", - "end": "2015-01-02T21:00:00.000Z", - "name": "Zanzibar Revolution Day", - "type": "public", - "rule": "01-02", - "_weekday": "Fri" - }, { "date": "2015-01-03 00:00:00 -0600", "start": "2015-01-02T15:00:00.000Z", @@ -26,6 +17,15 @@ "rule": "12 Rabi al-awwal", "_weekday": "Sat" }, + { + "date": "2015-01-12 00:00:00", + "start": "2015-01-11T21:00:00.000Z", + "end": "2015-01-12T21:00:00.000Z", + "name": "Zanzibar Revolution Day", + "type": "public", + "rule": "01-12", + "_weekday": "Mon" + }, { "date": "2015-04-03 00:00:00", "start": "2015-04-02T21:00:00.000Z", @@ -156,7 +156,7 @@ "date": "2015-12-26 00:00:00", "start": "2015-12-25T21:00:00.000Z", "end": "2015-12-26T21:00:00.000Z", - "name": "Christmas Day", + "name": "Boxing Day", "type": "public", "rule": "12-26", "_weekday": "Sat" diff --git a/test/fixtures/TZ-2016.json b/test/fixtures/TZ-2016.json index 802a63800..5a9b1381b 100644 --- a/test/fixtures/TZ-2016.json +++ b/test/fixtures/TZ-2016.json @@ -9,13 +9,13 @@ "_weekday": "Fri" }, { - "date": "2016-01-02 00:00:00", - "start": "2016-01-01T21:00:00.000Z", - "end": "2016-01-02T21:00:00.000Z", + "date": "2016-01-12 00:00:00", + "start": "2016-01-11T21:00:00.000Z", + "end": "2016-01-12T21:00:00.000Z", "name": "Zanzibar Revolution Day", "type": "public", - "rule": "01-02", - "_weekday": "Sat" + "rule": "01-12", + "_weekday": "Tue" }, { "date": "2016-03-25 00:00:00", @@ -147,7 +147,7 @@ "date": "2016-12-26 00:00:00", "start": "2016-12-25T21:00:00.000Z", "end": "2016-12-26T21:00:00.000Z", - "name": "Christmas Day", + "name": "Boxing Day", "type": "public", "rule": "12-26", "_weekday": "Mon" diff --git a/test/fixtures/TZ-2017.json b/test/fixtures/TZ-2017.json index 96ad58541..6fe21b404 100644 --- a/test/fixtures/TZ-2017.json +++ b/test/fixtures/TZ-2017.json @@ -9,13 +9,13 @@ "_weekday": "Sun" }, { - "date": "2017-01-02 00:00:00", - "start": "2017-01-01T21:00:00.000Z", - "end": "2017-01-02T21:00:00.000Z", + "date": "2017-01-12 00:00:00", + "start": "2017-01-11T21:00:00.000Z", + "end": "2017-01-12T21:00:00.000Z", "name": "Zanzibar Revolution Day", "type": "public", - "rule": "01-02", - "_weekday": "Mon" + "rule": "01-12", + "_weekday": "Thu" }, { "date": "2017-04-07 00:00:00", @@ -147,7 +147,7 @@ "date": "2017-12-26 00:00:00", "start": "2017-12-25T21:00:00.000Z", "end": "2017-12-26T21:00:00.000Z", - "name": "Christmas Day", + "name": "Boxing Day", "type": "public", "rule": "12-26", "_weekday": "Tue" diff --git a/test/fixtures/TZ-2018.json b/test/fixtures/TZ-2018.json index a044c38ab..7dc3b284e 100644 --- a/test/fixtures/TZ-2018.json +++ b/test/fixtures/TZ-2018.json @@ -9,13 +9,13 @@ "_weekday": "Mon" }, { - "date": "2018-01-02 00:00:00", - "start": "2018-01-01T21:00:00.000Z", - "end": "2018-01-02T21:00:00.000Z", + "date": "2018-01-12 00:00:00", + "start": "2018-01-11T21:00:00.000Z", + "end": "2018-01-12T21:00:00.000Z", "name": "Zanzibar Revolution Day", "type": "public", - "rule": "01-02", - "_weekday": "Tue" + "rule": "01-12", + "_weekday": "Fri" }, { "date": "2018-03-30 00:00:00", @@ -147,7 +147,7 @@ "date": "2018-12-26 00:00:00", "start": "2018-12-25T21:00:00.000Z", "end": "2018-12-26T21:00:00.000Z", - "name": "Christmas Day", + "name": "Boxing Day", "type": "public", "rule": "12-26", "_weekday": "Wed" diff --git a/test/fixtures/TZ-2019.json b/test/fixtures/TZ-2019.json index f763e2a97..4eafe9fbe 100644 --- a/test/fixtures/TZ-2019.json +++ b/test/fixtures/TZ-2019.json @@ -9,13 +9,13 @@ "_weekday": "Tue" }, { - "date": "2019-01-02 00:00:00", - "start": "2019-01-01T21:00:00.000Z", - "end": "2019-01-02T21:00:00.000Z", + "date": "2019-01-12 00:00:00", + "start": "2019-01-11T21:00:00.000Z", + "end": "2019-01-12T21:00:00.000Z", "name": "Zanzibar Revolution Day", "type": "public", - "rule": "01-02", - "_weekday": "Wed" + "rule": "01-12", + "_weekday": "Sat" }, { "date": "2019-04-07 00:00:00", @@ -147,7 +147,7 @@ "date": "2019-12-26 00:00:00", "start": "2019-12-25T21:00:00.000Z", "end": "2019-12-26T21:00:00.000Z", - "name": "Christmas Day", + "name": "Boxing Day", "type": "public", "rule": "12-26", "_weekday": "Thu" diff --git a/test/fixtures/TZ-2020.json b/test/fixtures/TZ-2020.json index 52dd306fa..e6928dd95 100644 --- a/test/fixtures/TZ-2020.json +++ b/test/fixtures/TZ-2020.json @@ -9,13 +9,13 @@ "_weekday": "Wed" }, { - "date": "2020-01-02 00:00:00", - "start": "2020-01-01T21:00:00.000Z", - "end": "2020-01-02T21:00:00.000Z", + "date": "2020-01-12 00:00:00", + "start": "2020-01-11T21:00:00.000Z", + "end": "2020-01-12T21:00:00.000Z", "name": "Zanzibar Revolution Day", "type": "public", - "rule": "01-02", - "_weekday": "Thu" + "rule": "01-12", + "_weekday": "Sun" }, { "date": "2020-04-07 00:00:00", @@ -147,7 +147,7 @@ "date": "2020-12-26 00:00:00", "start": "2020-12-25T21:00:00.000Z", "end": "2020-12-26T21:00:00.000Z", - "name": "Christmas Day", + "name": "Boxing Day", "type": "public", "rule": "12-26", "_weekday": "Sat" diff --git a/test/fixtures/TZ-2021.json b/test/fixtures/TZ-2021.json index b6ee5dfaf..9b299322d 100644 --- a/test/fixtures/TZ-2021.json +++ b/test/fixtures/TZ-2021.json @@ -9,13 +9,13 @@ "_weekday": "Fri" }, { - "date": "2021-01-02 00:00:00", - "start": "2021-01-01T21:00:00.000Z", - "end": "2021-01-02T21:00:00.000Z", + "date": "2021-01-12 00:00:00", + "start": "2021-01-11T21:00:00.000Z", + "end": "2021-01-12T21:00:00.000Z", "name": "Zanzibar Revolution Day", "type": "public", - "rule": "01-02", - "_weekday": "Sat" + "rule": "01-12", + "_weekday": "Tue" }, { "date": "2021-04-02 00:00:00", @@ -147,7 +147,7 @@ "date": "2021-12-26 00:00:00", "start": "2021-12-25T21:00:00.000Z", "end": "2021-12-26T21:00:00.000Z", - "name": "Christmas Day", + "name": "Boxing Day", "type": "public", "rule": "12-26", "_weekday": "Sun" diff --git a/test/fixtures/TZ-2022.json b/test/fixtures/TZ-2022.json index 723baa81b..4000a7bfc 100644 --- a/test/fixtures/TZ-2022.json +++ b/test/fixtures/TZ-2022.json @@ -9,13 +9,13 @@ "_weekday": "Sat" }, { - "date": "2022-01-02 00:00:00", - "start": "2022-01-01T21:00:00.000Z", - "end": "2022-01-02T21:00:00.000Z", + "date": "2022-01-12 00:00:00", + "start": "2022-01-11T21:00:00.000Z", + "end": "2022-01-12T21:00:00.000Z", "name": "Zanzibar Revolution Day", "type": "public", - "rule": "01-02", - "_weekday": "Sun" + "rule": "01-12", + "_weekday": "Wed" }, { "date": "2022-04-07 00:00:00", @@ -147,7 +147,7 @@ "date": "2022-12-26 00:00:00", "start": "2022-12-25T21:00:00.000Z", "end": "2022-12-26T21:00:00.000Z", - "name": "Christmas Day", + "name": "Boxing Day", "type": "public", "rule": "12-26", "_weekday": "Mon" diff --git a/test/fixtures/TZ-2023.json b/test/fixtures/TZ-2023.json index 1b04a0b5e..8b401f40e 100644 --- a/test/fixtures/TZ-2023.json +++ b/test/fixtures/TZ-2023.json @@ -9,13 +9,13 @@ "_weekday": "Sun" }, { - "date": "2023-01-02 00:00:00", - "start": "2023-01-01T21:00:00.000Z", - "end": "2023-01-02T21:00:00.000Z", + "date": "2023-01-12 00:00:00", + "start": "2023-01-11T21:00:00.000Z", + "end": "2023-01-12T21:00:00.000Z", "name": "Zanzibar Revolution Day", "type": "public", - "rule": "01-02", - "_weekday": "Mon" + "rule": "01-12", + "_weekday": "Thu" }, { "date": "2023-04-07 00:00:00", @@ -147,7 +147,7 @@ "date": "2023-12-26 00:00:00", "start": "2023-12-25T21:00:00.000Z", "end": "2023-12-26T21:00:00.000Z", - "name": "Christmas Day", + "name": "Boxing Day", "type": "public", "rule": "12-26", "_weekday": "Tue" diff --git a/test/fixtures/TZ-2024.json b/test/fixtures/TZ-2024.json index 408941555..14b84b1d9 100644 --- a/test/fixtures/TZ-2024.json +++ b/test/fixtures/TZ-2024.json @@ -9,13 +9,13 @@ "_weekday": "Mon" }, { - "date": "2024-01-02 00:00:00", - "start": "2024-01-01T21:00:00.000Z", - "end": "2024-01-02T21:00:00.000Z", + "date": "2024-01-12 00:00:00", + "start": "2024-01-11T21:00:00.000Z", + "end": "2024-01-12T21:00:00.000Z", "name": "Zanzibar Revolution Day", "type": "public", - "rule": "01-02", - "_weekday": "Tue" + "rule": "01-12", + "_weekday": "Fri" }, { "date": "2024-03-29 00:00:00", @@ -147,7 +147,7 @@ "date": "2024-12-26 00:00:00", "start": "2024-12-25T21:00:00.000Z", "end": "2024-12-26T21:00:00.000Z", - "name": "Christmas Day", + "name": "Boxing Day", "type": "public", "rule": "12-26", "_weekday": "Thu" diff --git a/test/fixtures/TZ-2025.json b/test/fixtures/TZ-2025.json index 4aee24761..587edab44 100644 --- a/test/fixtures/TZ-2025.json +++ b/test/fixtures/TZ-2025.json @@ -9,13 +9,13 @@ "_weekday": "Wed" }, { - "date": "2025-01-02 00:00:00", - "start": "2025-01-01T21:00:00.000Z", - "end": "2025-01-02T21:00:00.000Z", + "date": "2025-01-12 00:00:00", + "start": "2025-01-11T21:00:00.000Z", + "end": "2025-01-12T21:00:00.000Z", "name": "Zanzibar Revolution Day", "type": "public", - "rule": "01-02", - "_weekday": "Thu" + "rule": "01-12", + "_weekday": "Sun" }, { "date": "2025-03-30 00:00:00 -0600", @@ -147,7 +147,7 @@ "date": "2025-12-26 00:00:00", "start": "2025-12-25T21:00:00.000Z", "end": "2025-12-26T21:00:00.000Z", - "name": "Christmas Day", + "name": "Boxing Day", "type": "public", "rule": "12-26", "_weekday": "Fri" diff --git a/test/fixtures/TZ-2026.json b/test/fixtures/TZ-2026.json index b7df06295..c1e3f5e4f 100644 --- a/test/fixtures/TZ-2026.json +++ b/test/fixtures/TZ-2026.json @@ -9,13 +9,13 @@ "_weekday": "Thu" }, { - "date": "2026-01-02 00:00:00", - "start": "2026-01-01T21:00:00.000Z", - "end": "2026-01-02T21:00:00.000Z", + "date": "2026-01-12 00:00:00", + "start": "2026-01-11T21:00:00.000Z", + "end": "2026-01-12T21:00:00.000Z", "name": "Zanzibar Revolution Day", "type": "public", - "rule": "01-02", - "_weekday": "Fri" + "rule": "01-12", + "_weekday": "Mon" }, { "date": "2026-03-20 00:00:00 -0600", @@ -147,7 +147,7 @@ "date": "2026-12-26 00:00:00", "start": "2026-12-25T21:00:00.000Z", "end": "2026-12-26T21:00:00.000Z", - "name": "Christmas Day", + "name": "Boxing Day", "type": "public", "rule": "12-26", "_weekday": "Sat" diff --git a/test/fixtures/TZ-2027.json b/test/fixtures/TZ-2027.json index 8b24a5c70..61940d88c 100644 --- a/test/fixtures/TZ-2027.json +++ b/test/fixtures/TZ-2027.json @@ -9,13 +9,13 @@ "_weekday": "Fri" }, { - "date": "2027-01-02 00:00:00", - "start": "2027-01-01T21:00:00.000Z", - "end": "2027-01-02T21:00:00.000Z", + "date": "2027-01-12 00:00:00", + "start": "2027-01-11T21:00:00.000Z", + "end": "2027-01-12T21:00:00.000Z", "name": "Zanzibar Revolution Day", "type": "public", - "rule": "01-02", - "_weekday": "Sat" + "rule": "01-12", + "_weekday": "Tue" }, { "date": "2027-03-09 00:00:00 -0600", @@ -147,7 +147,7 @@ "date": "2027-12-26 00:00:00", "start": "2027-12-25T21:00:00.000Z", "end": "2027-12-26T21:00:00.000Z", - "name": "Christmas Day", + "name": "Boxing Day", "type": "public", "rule": "12-26", "_weekday": "Sun" diff --git a/test/fixtures/TZ-2028.json b/test/fixtures/TZ-2028.json index 788d743ff..6a569b1cc 100644 --- a/test/fixtures/TZ-2028.json +++ b/test/fixtures/TZ-2028.json @@ -9,13 +9,13 @@ "_weekday": "Sat" }, { - "date": "2028-01-02 00:00:00", - "start": "2028-01-01T21:00:00.000Z", - "end": "2028-01-02T21:00:00.000Z", + "date": "2028-01-12 00:00:00", + "start": "2028-01-11T21:00:00.000Z", + "end": "2028-01-12T21:00:00.000Z", "name": "Zanzibar Revolution Day", "type": "public", - "rule": "01-02", - "_weekday": "Sun" + "rule": "01-12", + "_weekday": "Wed" }, { "date": "2028-02-26 00:00:00 -0600", @@ -147,7 +147,7 @@ "date": "2028-12-26 00:00:00", "start": "2028-12-25T21:00:00.000Z", "end": "2028-12-26T21:00:00.000Z", - "name": "Christmas Day", + "name": "Boxing Day", "type": "public", "rule": "12-26", "_weekday": "Tue" diff --git a/test/fixtures/TZ-2029.json b/test/fixtures/TZ-2029.json index 062569c87..133a51fe5 100644 --- a/test/fixtures/TZ-2029.json +++ b/test/fixtures/TZ-2029.json @@ -9,13 +9,13 @@ "_weekday": "Mon" }, { - "date": "2029-01-02 00:00:00", - "start": "2029-01-01T21:00:00.000Z", - "end": "2029-01-02T21:00:00.000Z", + "date": "2029-01-12 00:00:00", + "start": "2029-01-11T21:00:00.000Z", + "end": "2029-01-12T21:00:00.000Z", "name": "Zanzibar Revolution Day", "type": "public", - "rule": "01-02", - "_weekday": "Tue" + "rule": "01-12", + "_weekday": "Fri" }, { "date": "2029-02-14 00:00:00 -0600", @@ -147,7 +147,7 @@ "date": "2029-12-26 00:00:00", "start": "2029-12-25T21:00:00.000Z", "end": "2029-12-26T21:00:00.000Z", - "name": "Christmas Day", + "name": "Boxing Day", "type": "public", "rule": "12-26", "_weekday": "Wed" From bebd6ae4d3b46c14272bae706629d06a28f4e63c Mon Sep 17 00:00:00 2001 From: QuantIntellect <195442302+QuantIntellect@users.noreply.github.com> Date: Sun, 29 Nov 2026 05:09:54 +0000 Subject: [PATCH 2/4] fix(ZW): Defence Forces Day on the Tuesday after Heroes' Day When August 1 is a Tuesday, the 2nd Tuesday in August comes before Heroes' Day (2nd Monday). General Notice 244 of 2016 lists Heroes' Day on Monday 14 August 2017 and Defence Forces National Day on Tuesday 15 August 2017. Changes 2017, 2023 and 2028. --- data/countries/ZW.yaml | 3 ++- test/fixtures/ZW-2015.json | 2 +- test/fixtures/ZW-2016.json | 2 +- test/fixtures/ZW-2017.json | 18 +++++++++--------- test/fixtures/ZW-2018.json | 2 +- test/fixtures/ZW-2019.json | 2 +- test/fixtures/ZW-2020.json | 2 +- test/fixtures/ZW-2021.json | 2 +- test/fixtures/ZW-2022.json | 2 +- test/fixtures/ZW-2023.json | 18 +++++++++--------- test/fixtures/ZW-2024.json | 2 +- test/fixtures/ZW-2025.json | 2 +- test/fixtures/ZW-2026.json | 2 +- test/fixtures/ZW-2027.json | 2 +- test/fixtures/ZW-2028.json | 18 +++++++++--------- test/fixtures/ZW-2029.json | 2 +- 16 files changed, 41 insertions(+), 40 deletions(-) diff --git a/data/countries/ZW.yaml b/data/countries/ZW.yaml index aed2e1ff9..60e2796aa 100644 --- a/data/countries/ZW.yaml +++ b/data/countries/ZW.yaml @@ -1,4 +1,5 @@ holidays: + # @source https://web.archive.org/web/20261111132554/https://www.veritaszim.net/sites/veritas_d/files/GN%202016-244%20Public%20Holidays%202017.pdf ZW: names: sn: Nyika yeZimbabwe @@ -41,7 +42,7 @@ holidays: 2nd monday in August: name: en: Heroes’ Day - 2nd tuesday in August: + tuesday after 2nd monday in August: name: en: Defence Forces Day 12-22: diff --git a/test/fixtures/ZW-2015.json b/test/fixtures/ZW-2015.json index c731c8993..a484ee83b 100644 --- a/test/fixtures/ZW-2015.json +++ b/test/fixtures/ZW-2015.json @@ -95,7 +95,7 @@ "end": "2015-08-11T22:00:00.000Z", "name": "Defence Forces Day", "type": "public", - "rule": "2nd tuesday in August", + "rule": "tuesday after 2nd monday in August", "_weekday": "Tue" }, { diff --git a/test/fixtures/ZW-2016.json b/test/fixtures/ZW-2016.json index cd5e80fab..a5cc3eb69 100644 --- a/test/fixtures/ZW-2016.json +++ b/test/fixtures/ZW-2016.json @@ -95,7 +95,7 @@ "end": "2016-08-09T22:00:00.000Z", "name": "Defence Forces Day", "type": "public", - "rule": "2nd tuesday in August", + "rule": "tuesday after 2nd monday in August", "_weekday": "Tue" }, { diff --git a/test/fixtures/ZW-2017.json b/test/fixtures/ZW-2017.json index 177ff57c9..ec0fe9df7 100644 --- a/test/fixtures/ZW-2017.json +++ b/test/fixtures/ZW-2017.json @@ -80,15 +80,6 @@ "rule": "3rd sunday in June", "_weekday": "Sun" }, - { - "date": "2017-08-08 00:00:00", - "start": "2017-08-07T22:00:00.000Z", - "end": "2017-08-08T22:00:00.000Z", - "name": "Defence Forces Day", - "type": "public", - "rule": "2nd tuesday in August", - "_weekday": "Tue" - }, { "date": "2017-08-14 00:00:00", "start": "2017-08-13T22:00:00.000Z", @@ -98,6 +89,15 @@ "rule": "2nd monday in August", "_weekday": "Mon" }, + { + "date": "2017-08-15 00:00:00", + "start": "2017-08-14T22:00:00.000Z", + "end": "2017-08-15T22:00:00.000Z", + "name": "Defence Forces Day", + "type": "public", + "rule": "tuesday after 2nd monday in August", + "_weekday": "Tue" + }, { "date": "2017-12-22 00:00:00", "start": "2017-12-21T22:00:00.000Z", diff --git a/test/fixtures/ZW-2018.json b/test/fixtures/ZW-2018.json index f807744eb..34ac9883b 100644 --- a/test/fixtures/ZW-2018.json +++ b/test/fixtures/ZW-2018.json @@ -95,7 +95,7 @@ "end": "2018-08-14T22:00:00.000Z", "name": "Defence Forces Day", "type": "public", - "rule": "2nd tuesday in August", + "rule": "tuesday after 2nd monday in August", "_weekday": "Tue" }, { diff --git a/test/fixtures/ZW-2019.json b/test/fixtures/ZW-2019.json index 957b9b889..e50e1eef7 100644 --- a/test/fixtures/ZW-2019.json +++ b/test/fixtures/ZW-2019.json @@ -95,7 +95,7 @@ "end": "2019-08-13T22:00:00.000Z", "name": "Defence Forces Day", "type": "public", - "rule": "2nd tuesday in August", + "rule": "tuesday after 2nd monday in August", "_weekday": "Tue" }, { diff --git a/test/fixtures/ZW-2020.json b/test/fixtures/ZW-2020.json index d31013ec8..2ba7d4995 100644 --- a/test/fixtures/ZW-2020.json +++ b/test/fixtures/ZW-2020.json @@ -95,7 +95,7 @@ "end": "2020-08-11T22:00:00.000Z", "name": "Defence Forces Day", "type": "public", - "rule": "2nd tuesday in August", + "rule": "tuesday after 2nd monday in August", "_weekday": "Tue" }, { diff --git a/test/fixtures/ZW-2021.json b/test/fixtures/ZW-2021.json index 7d9fc8641..2a5cd0fca 100644 --- a/test/fixtures/ZW-2021.json +++ b/test/fixtures/ZW-2021.json @@ -95,7 +95,7 @@ "end": "2021-08-10T22:00:00.000Z", "name": "Defence Forces Day", "type": "public", - "rule": "2nd tuesday in August", + "rule": "tuesday after 2nd monday in August", "_weekday": "Tue" }, { diff --git a/test/fixtures/ZW-2022.json b/test/fixtures/ZW-2022.json index a84881d52..4ed103e38 100644 --- a/test/fixtures/ZW-2022.json +++ b/test/fixtures/ZW-2022.json @@ -95,7 +95,7 @@ "end": "2022-08-09T22:00:00.000Z", "name": "Defence Forces Day", "type": "public", - "rule": "2nd tuesday in August", + "rule": "tuesday after 2nd monday in August", "_weekday": "Tue" }, { diff --git a/test/fixtures/ZW-2023.json b/test/fixtures/ZW-2023.json index fff296cba..46d56e6a8 100644 --- a/test/fixtures/ZW-2023.json +++ b/test/fixtures/ZW-2023.json @@ -80,15 +80,6 @@ "rule": "3rd sunday in June", "_weekday": "Sun" }, - { - "date": "2023-08-08 00:00:00", - "start": "2023-08-07T22:00:00.000Z", - "end": "2023-08-08T22:00:00.000Z", - "name": "Defence Forces Day", - "type": "public", - "rule": "2nd tuesday in August", - "_weekday": "Tue" - }, { "date": "2023-08-14 00:00:00", "start": "2023-08-13T22:00:00.000Z", @@ -98,6 +89,15 @@ "rule": "2nd monday in August", "_weekday": "Mon" }, + { + "date": "2023-08-15 00:00:00", + "start": "2023-08-14T22:00:00.000Z", + "end": "2023-08-15T22:00:00.000Z", + "name": "Defence Forces Day", + "type": "public", + "rule": "tuesday after 2nd monday in August", + "_weekday": "Tue" + }, { "date": "2023-12-22 00:00:00", "start": "2023-12-21T22:00:00.000Z", diff --git a/test/fixtures/ZW-2024.json b/test/fixtures/ZW-2024.json index 11b270dfa..c386c2046 100644 --- a/test/fixtures/ZW-2024.json +++ b/test/fixtures/ZW-2024.json @@ -95,7 +95,7 @@ "end": "2024-08-13T22:00:00.000Z", "name": "Defence Forces Day", "type": "public", - "rule": "2nd tuesday in August", + "rule": "tuesday after 2nd monday in August", "_weekday": "Tue" }, { diff --git a/test/fixtures/ZW-2025.json b/test/fixtures/ZW-2025.json index c7b52d6e0..eaf20ca43 100644 --- a/test/fixtures/ZW-2025.json +++ b/test/fixtures/ZW-2025.json @@ -95,7 +95,7 @@ "end": "2025-08-12T22:00:00.000Z", "name": "Defence Forces Day", "type": "public", - "rule": "2nd tuesday in August", + "rule": "tuesday after 2nd monday in August", "_weekday": "Tue" }, { diff --git a/test/fixtures/ZW-2026.json b/test/fixtures/ZW-2026.json index 62839086f..9b9d8e3bb 100644 --- a/test/fixtures/ZW-2026.json +++ b/test/fixtures/ZW-2026.json @@ -95,7 +95,7 @@ "end": "2026-08-11T22:00:00.000Z", "name": "Defence Forces Day", "type": "public", - "rule": "2nd tuesday in August", + "rule": "tuesday after 2nd monday in August", "_weekday": "Tue" }, { diff --git a/test/fixtures/ZW-2027.json b/test/fixtures/ZW-2027.json index 80cd9f894..2f564ba4a 100644 --- a/test/fixtures/ZW-2027.json +++ b/test/fixtures/ZW-2027.json @@ -95,7 +95,7 @@ "end": "2027-08-10T22:00:00.000Z", "name": "Defence Forces Day", "type": "public", - "rule": "2nd tuesday in August", + "rule": "tuesday after 2nd monday in August", "_weekday": "Tue" }, { diff --git a/test/fixtures/ZW-2028.json b/test/fixtures/ZW-2028.json index 8d2c7dfe4..e2e6804f2 100644 --- a/test/fixtures/ZW-2028.json +++ b/test/fixtures/ZW-2028.json @@ -80,15 +80,6 @@ "rule": "3rd sunday in June", "_weekday": "Sun" }, - { - "date": "2028-08-08 00:00:00", - "start": "2028-08-07T22:00:00.000Z", - "end": "2028-08-08T22:00:00.000Z", - "name": "Defence Forces Day", - "type": "public", - "rule": "2nd tuesday in August", - "_weekday": "Tue" - }, { "date": "2028-08-14 00:00:00", "start": "2028-08-13T22:00:00.000Z", @@ -98,6 +89,15 @@ "rule": "2nd monday in August", "_weekday": "Mon" }, + { + "date": "2028-08-15 00:00:00", + "start": "2028-08-14T22:00:00.000Z", + "end": "2028-08-15T22:00:00.000Z", + "name": "Defence Forces Day", + "type": "public", + "rule": "tuesday after 2nd monday in August", + "_weekday": "Tue" + }, { "date": "2028-12-22 00:00:00", "start": "2028-12-21T22:00:00.000Z", diff --git a/test/fixtures/ZW-2029.json b/test/fixtures/ZW-2029.json index 38cbf14a9..9bda1d0fb 100644 --- a/test/fixtures/ZW-2029.json +++ b/test/fixtures/ZW-2029.json @@ -95,7 +95,7 @@ "end": "2029-08-14T22:00:00.000Z", "name": "Defence Forces Day", "type": "public", - "rule": "2nd tuesday in August", + "rule": "tuesday after 2nd monday in August", "_weekday": "Tue" }, { From a30e661c6e9d23d3131c48e8c0d4446590afa1d3 Mon Sep 17 00:00:00 2001 From: QuantIntellect <195442302+QuantIntellect@users.noreply.github.com> Date: Sun, 29 Nov 2026 05:09:54 +0000 Subject: [PATCH 3/4] fix(AI): August Thursday and Constitution Day after August Monday The Government of Anguilla lists both after August Monday (the first Monday in August), e.g. 7, 10 and 11 August 2017 and 4, 7 and 8 August 2025. The 1st Thursday in August comes before August Monday when August 1 is a Tuesday, Wednesday or Thursday, and the 1st Friday does when August 1 is a Tuesday to Friday. --- data/countries/AI.yaml | 5 +++-- test/fixtures/AI-2015.json | 4 ++-- test/fixtures/AI-2016.json | 4 ++-- test/fixtures/AI-2017.json | 34 +++++++++++++++++----------------- test/fixtures/AI-2018.json | 34 +++++++++++++++++----------------- test/fixtures/AI-2019.json | 34 +++++++++++++++++----------------- test/fixtures/AI-2020.json | 4 ++-- test/fixtures/AI-2021.json | 4 ++-- test/fixtures/AI-2022.json | 4 ++-- test/fixtures/AI-2023.json | 34 +++++++++++++++++----------------- test/fixtures/AI-2024.json | 34 +++++++++++++++++----------------- test/fixtures/AI-2025.json | 20 ++++++++++---------- test/fixtures/AI-2026.json | 4 ++-- test/fixtures/AI-2027.json | 4 ++-- test/fixtures/AI-2028.json | 34 +++++++++++++++++----------------- test/fixtures/AI-2029.json | 34 +++++++++++++++++----------------- 16 files changed, 146 insertions(+), 145 deletions(-) diff --git a/data/countries/AI.yaml b/data/countries/AI.yaml index 9867c42a9..bbe8afda5 100644 --- a/data/countries/AI.yaml +++ b/data/countries/AI.yaml @@ -1,5 +1,6 @@ holidays: # @source http://www.gov.ai/holiday.php + # @source https://web.archive.org/web/20250425025259/https://www.gov.ai/service/public-holidays-for-2025 AI: names: en: Anguilla @@ -40,10 +41,10 @@ holidays: 1st monday in August: name: en: August Monday - 1st thursday in August: + thursday after 1st monday in August: name: en: August Thursday - 1st friday in August: + friday after 1st monday in August: _name: Constitution Day 12-19: name: diff --git a/test/fixtures/AI-2015.json b/test/fixtures/AI-2015.json index 924b0acc4..7a6a6da8d 100644 --- a/test/fixtures/AI-2015.json +++ b/test/fixtures/AI-2015.json @@ -104,7 +104,7 @@ "end": "2015-08-07T04:00:00.000Z", "name": "August Thursday", "type": "public", - "rule": "1st thursday in August", + "rule": "thursday after 1st monday in August", "_weekday": "Thu" }, { @@ -113,7 +113,7 @@ "end": "2015-08-08T04:00:00.000Z", "name": "Constitution Day", "type": "public", - "rule": "1st friday in August", + "rule": "friday after 1st monday in August", "_weekday": "Fri" }, { diff --git a/test/fixtures/AI-2016.json b/test/fixtures/AI-2016.json index 7a3aeb37a..32b014801 100644 --- a/test/fixtures/AI-2016.json +++ b/test/fixtures/AI-2016.json @@ -104,7 +104,7 @@ "end": "2016-08-05T04:00:00.000Z", "name": "August Thursday", "type": "public", - "rule": "1st thursday in August", + "rule": "thursday after 1st monday in August", "_weekday": "Thu" }, { @@ -113,7 +113,7 @@ "end": "2016-08-06T04:00:00.000Z", "name": "Constitution Day", "type": "public", - "rule": "1st friday in August", + "rule": "friday after 1st monday in August", "_weekday": "Fri" }, { diff --git a/test/fixtures/AI-2017.json b/test/fixtures/AI-2017.json index 384c5782c..64386695b 100644 --- a/test/fixtures/AI-2017.json +++ b/test/fixtures/AI-2017.json @@ -90,32 +90,32 @@ "_weekday": "Mon" }, { - "date": "2017-08-03 00:00:00", - "start": "2017-08-03T04:00:00.000Z", - "end": "2017-08-04T04:00:00.000Z", + "date": "2017-08-07 00:00:00", + "start": "2017-08-07T04:00:00.000Z", + "end": "2017-08-08T04:00:00.000Z", + "name": "August Monday", + "type": "public", + "rule": "1st monday in August", + "_weekday": "Mon" + }, + { + "date": "2017-08-10 00:00:00", + "start": "2017-08-10T04:00:00.000Z", + "end": "2017-08-11T04:00:00.000Z", "name": "August Thursday", "type": "public", - "rule": "1st thursday in August", + "rule": "thursday after 1st monday in August", "_weekday": "Thu" }, { - "date": "2017-08-04 00:00:00", - "start": "2017-08-04T04:00:00.000Z", - "end": "2017-08-05T04:00:00.000Z", + "date": "2017-08-11 00:00:00", + "start": "2017-08-11T04:00:00.000Z", + "end": "2017-08-12T04:00:00.000Z", "name": "Constitution Day", "type": "public", - "rule": "1st friday in August", + "rule": "friday after 1st monday in August", "_weekday": "Fri" }, - { - "date": "2017-08-07 00:00:00", - "start": "2017-08-07T04:00:00.000Z", - "end": "2017-08-08T04:00:00.000Z", - "name": "August Monday", - "type": "public", - "rule": "1st monday in August", - "_weekday": "Mon" - }, { "date": "2017-12-19 00:00:00", "start": "2017-12-19T04:00:00.000Z", diff --git a/test/fixtures/AI-2018.json b/test/fixtures/AI-2018.json index ee73a1d8c..194307959 100644 --- a/test/fixtures/AI-2018.json +++ b/test/fixtures/AI-2018.json @@ -90,32 +90,32 @@ "_weekday": "Mon" }, { - "date": "2018-08-02 00:00:00", - "start": "2018-08-02T04:00:00.000Z", - "end": "2018-08-03T04:00:00.000Z", + "date": "2018-08-06 00:00:00", + "start": "2018-08-06T04:00:00.000Z", + "end": "2018-08-07T04:00:00.000Z", + "name": "August Monday", + "type": "public", + "rule": "1st monday in August", + "_weekday": "Mon" + }, + { + "date": "2018-08-09 00:00:00", + "start": "2018-08-09T04:00:00.000Z", + "end": "2018-08-10T04:00:00.000Z", "name": "August Thursday", "type": "public", - "rule": "1st thursday in August", + "rule": "thursday after 1st monday in August", "_weekday": "Thu" }, { - "date": "2018-08-03 00:00:00", - "start": "2018-08-03T04:00:00.000Z", - "end": "2018-08-04T04:00:00.000Z", + "date": "2018-08-10 00:00:00", + "start": "2018-08-10T04:00:00.000Z", + "end": "2018-08-11T04:00:00.000Z", "name": "Constitution Day", "type": "public", - "rule": "1st friday in August", + "rule": "friday after 1st monday in August", "_weekday": "Fri" }, - { - "date": "2018-08-06 00:00:00", - "start": "2018-08-06T04:00:00.000Z", - "end": "2018-08-07T04:00:00.000Z", - "name": "August Monday", - "type": "public", - "rule": "1st monday in August", - "_weekday": "Mon" - }, { "date": "2018-12-19 00:00:00", "start": "2018-12-19T04:00:00.000Z", diff --git a/test/fixtures/AI-2019.json b/test/fixtures/AI-2019.json index e703f5919..68b1e5965 100644 --- a/test/fixtures/AI-2019.json +++ b/test/fixtures/AI-2019.json @@ -90,32 +90,32 @@ "_weekday": "Mon" }, { - "date": "2019-08-01 00:00:00", - "start": "2019-08-01T04:00:00.000Z", - "end": "2019-08-02T04:00:00.000Z", + "date": "2019-08-05 00:00:00", + "start": "2019-08-05T04:00:00.000Z", + "end": "2019-08-06T04:00:00.000Z", + "name": "August Monday", + "type": "public", + "rule": "1st monday in August", + "_weekday": "Mon" + }, + { + "date": "2019-08-08 00:00:00", + "start": "2019-08-08T04:00:00.000Z", + "end": "2019-08-09T04:00:00.000Z", "name": "August Thursday", "type": "public", - "rule": "1st thursday in August", + "rule": "thursday after 1st monday in August", "_weekday": "Thu" }, { - "date": "2019-08-02 00:00:00", - "start": "2019-08-02T04:00:00.000Z", - "end": "2019-08-03T04:00:00.000Z", + "date": "2019-08-09 00:00:00", + "start": "2019-08-09T04:00:00.000Z", + "end": "2019-08-10T04:00:00.000Z", "name": "Constitution Day", "type": "public", - "rule": "1st friday in August", + "rule": "friday after 1st monday in August", "_weekday": "Fri" }, - { - "date": "2019-08-05 00:00:00", - "start": "2019-08-05T04:00:00.000Z", - "end": "2019-08-06T04:00:00.000Z", - "name": "August Monday", - "type": "public", - "rule": "1st monday in August", - "_weekday": "Mon" - }, { "date": "2019-12-19 00:00:00", "start": "2019-12-19T04:00:00.000Z", diff --git a/test/fixtures/AI-2020.json b/test/fixtures/AI-2020.json index d9875c104..987c18be5 100644 --- a/test/fixtures/AI-2020.json +++ b/test/fixtures/AI-2020.json @@ -104,7 +104,7 @@ "end": "2020-08-07T04:00:00.000Z", "name": "August Thursday", "type": "public", - "rule": "1st thursday in August", + "rule": "thursday after 1st monday in August", "_weekday": "Thu" }, { @@ -113,7 +113,7 @@ "end": "2020-08-08T04:00:00.000Z", "name": "Constitution Day", "type": "public", - "rule": "1st friday in August", + "rule": "friday after 1st monday in August", "_weekday": "Fri" }, { diff --git a/test/fixtures/AI-2021.json b/test/fixtures/AI-2021.json index 3792cb7ed..ee18f6f80 100644 --- a/test/fixtures/AI-2021.json +++ b/test/fixtures/AI-2021.json @@ -104,7 +104,7 @@ "end": "2021-08-06T04:00:00.000Z", "name": "August Thursday", "type": "public", - "rule": "1st thursday in August", + "rule": "thursday after 1st monday in August", "_weekday": "Thu" }, { @@ -113,7 +113,7 @@ "end": "2021-08-07T04:00:00.000Z", "name": "Constitution Day", "type": "public", - "rule": "1st friday in August", + "rule": "friday after 1st monday in August", "_weekday": "Fri" }, { diff --git a/test/fixtures/AI-2022.json b/test/fixtures/AI-2022.json index f25aebf1f..bb822f12d 100644 --- a/test/fixtures/AI-2022.json +++ b/test/fixtures/AI-2022.json @@ -104,7 +104,7 @@ "end": "2022-08-05T04:00:00.000Z", "name": "August Thursday", "type": "public", - "rule": "1st thursday in August", + "rule": "thursday after 1st monday in August", "_weekday": "Thu" }, { @@ -113,7 +113,7 @@ "end": "2022-08-06T04:00:00.000Z", "name": "Constitution Day", "type": "public", - "rule": "1st friday in August", + "rule": "friday after 1st monday in August", "_weekday": "Fri" }, { diff --git a/test/fixtures/AI-2023.json b/test/fixtures/AI-2023.json index d29939281..2162e1053 100644 --- a/test/fixtures/AI-2023.json +++ b/test/fixtures/AI-2023.json @@ -90,32 +90,32 @@ "_weekday": "Mon" }, { - "date": "2023-08-03 00:00:00", - "start": "2023-08-03T04:00:00.000Z", - "end": "2023-08-04T04:00:00.000Z", + "date": "2023-08-07 00:00:00", + "start": "2023-08-07T04:00:00.000Z", + "end": "2023-08-08T04:00:00.000Z", + "name": "August Monday", + "type": "public", + "rule": "1st monday in August", + "_weekday": "Mon" + }, + { + "date": "2023-08-10 00:00:00", + "start": "2023-08-10T04:00:00.000Z", + "end": "2023-08-11T04:00:00.000Z", "name": "August Thursday", "type": "public", - "rule": "1st thursday in August", + "rule": "thursday after 1st monday in August", "_weekday": "Thu" }, { - "date": "2023-08-04 00:00:00", - "start": "2023-08-04T04:00:00.000Z", - "end": "2023-08-05T04:00:00.000Z", + "date": "2023-08-11 00:00:00", + "start": "2023-08-11T04:00:00.000Z", + "end": "2023-08-12T04:00:00.000Z", "name": "Constitution Day", "type": "public", - "rule": "1st friday in August", + "rule": "friday after 1st monday in August", "_weekday": "Fri" }, - { - "date": "2023-08-07 00:00:00", - "start": "2023-08-07T04:00:00.000Z", - "end": "2023-08-08T04:00:00.000Z", - "name": "August Monday", - "type": "public", - "rule": "1st monday in August", - "_weekday": "Mon" - }, { "date": "2023-12-19 00:00:00", "start": "2023-12-19T04:00:00.000Z", diff --git a/test/fixtures/AI-2024.json b/test/fixtures/AI-2024.json index 45bd48148..b173dad0e 100644 --- a/test/fixtures/AI-2024.json +++ b/test/fixtures/AI-2024.json @@ -90,32 +90,32 @@ "_weekday": "Mon" }, { - "date": "2024-08-01 00:00:00", - "start": "2024-08-01T04:00:00.000Z", - "end": "2024-08-02T04:00:00.000Z", + "date": "2024-08-05 00:00:00", + "start": "2024-08-05T04:00:00.000Z", + "end": "2024-08-06T04:00:00.000Z", + "name": "August Monday", + "type": "public", + "rule": "1st monday in August", + "_weekday": "Mon" + }, + { + "date": "2024-08-08 00:00:00", + "start": "2024-08-08T04:00:00.000Z", + "end": "2024-08-09T04:00:00.000Z", "name": "August Thursday", "type": "public", - "rule": "1st thursday in August", + "rule": "thursday after 1st monday in August", "_weekday": "Thu" }, { - "date": "2024-08-02 00:00:00", - "start": "2024-08-02T04:00:00.000Z", - "end": "2024-08-03T04:00:00.000Z", + "date": "2024-08-09 00:00:00", + "start": "2024-08-09T04:00:00.000Z", + "end": "2024-08-10T04:00:00.000Z", "name": "Constitution Day", "type": "public", - "rule": "1st friday in August", + "rule": "friday after 1st monday in August", "_weekday": "Fri" }, - { - "date": "2024-08-05 00:00:00", - "start": "2024-08-05T04:00:00.000Z", - "end": "2024-08-06T04:00:00.000Z", - "name": "August Monday", - "type": "public", - "rule": "1st monday in August", - "_weekday": "Mon" - }, { "date": "2024-12-19 00:00:00", "start": "2024-12-19T04:00:00.000Z", diff --git a/test/fixtures/AI-2025.json b/test/fixtures/AI-2025.json index c8473e5ec..151d3e6c4 100644 --- a/test/fixtures/AI-2025.json +++ b/test/fixtures/AI-2025.json @@ -89,15 +89,6 @@ "rule": "easter 50", "_weekday": "Mon" }, - { - "date": "2025-08-01 00:00:00", - "start": "2025-08-01T04:00:00.000Z", - "end": "2025-08-02T04:00:00.000Z", - "name": "Constitution Day", - "type": "public", - "rule": "1st friday in August", - "_weekday": "Fri" - }, { "date": "2025-08-04 00:00:00", "start": "2025-08-04T04:00:00.000Z", @@ -113,9 +104,18 @@ "end": "2025-08-08T04:00:00.000Z", "name": "August Thursday", "type": "public", - "rule": "1st thursday in August", + "rule": "thursday after 1st monday in August", "_weekday": "Thu" }, + { + "date": "2025-08-08 00:00:00", + "start": "2025-08-08T04:00:00.000Z", + "end": "2025-08-09T04:00:00.000Z", + "name": "Constitution Day", + "type": "public", + "rule": "friday after 1st monday in August", + "_weekday": "Fri" + }, { "date": "2025-12-19 00:00:00", "start": "2025-12-19T04:00:00.000Z", diff --git a/test/fixtures/AI-2026.json b/test/fixtures/AI-2026.json index 5b84bcaf4..01c04d697 100644 --- a/test/fixtures/AI-2026.json +++ b/test/fixtures/AI-2026.json @@ -104,7 +104,7 @@ "end": "2026-08-07T04:00:00.000Z", "name": "August Thursday", "type": "public", - "rule": "1st thursday in August", + "rule": "thursday after 1st monday in August", "_weekday": "Thu" }, { @@ -113,7 +113,7 @@ "end": "2026-08-08T04:00:00.000Z", "name": "Constitution Day", "type": "public", - "rule": "1st friday in August", + "rule": "friday after 1st monday in August", "_weekday": "Fri" }, { diff --git a/test/fixtures/AI-2027.json b/test/fixtures/AI-2027.json index 04fb775c1..9f0695202 100644 --- a/test/fixtures/AI-2027.json +++ b/test/fixtures/AI-2027.json @@ -104,7 +104,7 @@ "end": "2027-08-06T04:00:00.000Z", "name": "August Thursday", "type": "public", - "rule": "1st thursday in August", + "rule": "thursday after 1st monday in August", "_weekday": "Thu" }, { @@ -113,7 +113,7 @@ "end": "2027-08-07T04:00:00.000Z", "name": "Constitution Day", "type": "public", - "rule": "1st friday in August", + "rule": "friday after 1st monday in August", "_weekday": "Fri" }, { diff --git a/test/fixtures/AI-2028.json b/test/fixtures/AI-2028.json index 9c063e4b2..f8cab6b85 100644 --- a/test/fixtures/AI-2028.json +++ b/test/fixtures/AI-2028.json @@ -90,32 +90,32 @@ "_weekday": "Mon" }, { - "date": "2028-08-03 00:00:00", - "start": "2028-08-03T04:00:00.000Z", - "end": "2028-08-04T04:00:00.000Z", + "date": "2028-08-07 00:00:00", + "start": "2028-08-07T04:00:00.000Z", + "end": "2028-08-08T04:00:00.000Z", + "name": "August Monday", + "type": "public", + "rule": "1st monday in August", + "_weekday": "Mon" + }, + { + "date": "2028-08-10 00:00:00", + "start": "2028-08-10T04:00:00.000Z", + "end": "2028-08-11T04:00:00.000Z", "name": "August Thursday", "type": "public", - "rule": "1st thursday in August", + "rule": "thursday after 1st monday in August", "_weekday": "Thu" }, { - "date": "2028-08-04 00:00:00", - "start": "2028-08-04T04:00:00.000Z", - "end": "2028-08-05T04:00:00.000Z", + "date": "2028-08-11 00:00:00", + "start": "2028-08-11T04:00:00.000Z", + "end": "2028-08-12T04:00:00.000Z", "name": "Constitution Day", "type": "public", - "rule": "1st friday in August", + "rule": "friday after 1st monday in August", "_weekday": "Fri" }, - { - "date": "2028-08-07 00:00:00", - "start": "2028-08-07T04:00:00.000Z", - "end": "2028-08-08T04:00:00.000Z", - "name": "August Monday", - "type": "public", - "rule": "1st monday in August", - "_weekday": "Mon" - }, { "date": "2028-12-19 00:00:00", "start": "2028-12-19T04:00:00.000Z", diff --git a/test/fixtures/AI-2029.json b/test/fixtures/AI-2029.json index ee5ce57ba..21101386c 100644 --- a/test/fixtures/AI-2029.json +++ b/test/fixtures/AI-2029.json @@ -90,32 +90,32 @@ "_weekday": "Mon" }, { - "date": "2029-08-02 00:00:00", - "start": "2029-08-02T04:00:00.000Z", - "end": "2029-08-03T04:00:00.000Z", + "date": "2029-08-06 00:00:00", + "start": "2029-08-06T04:00:00.000Z", + "end": "2029-08-07T04:00:00.000Z", + "name": "August Monday", + "type": "public", + "rule": "1st monday in August", + "_weekday": "Mon" + }, + { + "date": "2029-08-09 00:00:00", + "start": "2029-08-09T04:00:00.000Z", + "end": "2029-08-10T04:00:00.000Z", "name": "August Thursday", "type": "public", - "rule": "1st thursday in August", + "rule": "thursday after 1st monday in August", "_weekday": "Thu" }, { - "date": "2029-08-03 00:00:00", - "start": "2029-08-03T04:00:00.000Z", - "end": "2029-08-04T04:00:00.000Z", + "date": "2029-08-10 00:00:00", + "start": "2029-08-10T04:00:00.000Z", + "end": "2029-08-11T04:00:00.000Z", "name": "Constitution Day", "type": "public", - "rule": "1st friday in August", + "rule": "friday after 1st monday in August", "_weekday": "Fri" }, - { - "date": "2029-08-06 00:00:00", - "start": "2029-08-06T04:00:00.000Z", - "end": "2029-08-07T04:00:00.000Z", - "name": "August Monday", - "type": "public", - "rule": "1st monday in August", - "_weekday": "Mon" - }, { "date": "2029-12-19 00:00:00", "start": "2029-12-19T04:00:00.000Z", From 0bd181d30529be89719b5b592f7c628939e58da3 Mon Sep 17 00:00:00 2001 From: QuantIntellect <195442302+QuantIntellect@users.noreply.github.com> Date: Sun, 29 Nov 2026 05:09:54 +0000 Subject: [PATCH 4/4] fix(BS): National Heroes' Day on the second Monday in October National Heroes' Day replaced Discovery Day (October 12) in October 2013 and is held on the second Monday in October: the Bahamas High Commission in London listed it on Monday 8 October 2018, and the BISX trading calendar on Monday 11 October 2021. Discovery Day keeps the October 12 rule before 2013. --- data/countries/BS.yaml | 8 +++++++- test/fixtures/BS-2015.json | 2 +- test/fixtures/BS-2016.json | 10 +++++----- test/fixtures/BS-2017.json | 10 +++++----- test/fixtures/BS-2018.json | 10 +++++----- test/fixtures/BS-2019.json | 14 ++------------ test/fixtures/BS-2020.json | 2 +- test/fixtures/BS-2021.json | 10 +++++----- test/fixtures/BS-2022.json | 10 +++++----- test/fixtures/BS-2023.json | 10 +++++----- test/fixtures/BS-2024.json | 14 ++------------ test/fixtures/BS-2025.json | 14 ++------------ test/fixtures/BS-2026.json | 2 +- test/fixtures/BS-2027.json | 10 +++++----- test/fixtures/BS-2028.json | 10 +++++----- test/fixtures/BS-2029.json | 10 +++++----- 16 files changed, 61 insertions(+), 85 deletions(-) diff --git a/data/countries/BS.yaml b/data/countries/BS.yaml index 8af08d25d..29f224769 100644 --- a/data/countries/BS.yaml +++ b/data/countries/BS.yaml @@ -1,6 +1,9 @@ holidays: # @attrib https://en.wikipedia.org/wiki/Public_holidays_in_the_Bahamas # @source http://laws.bahamas.gov.bs/cms/images/LEGISLATION/PRINCIPAL/1938/1938-0015/PublicHolidaysAct_1.pdf + # @source https://web.archive.org/web/20210922210604/http://www.tribune242.com/news/2013/oct/12/national-heroes-day-formally-established/ + # @source https://web.archive.org/web/20181218120211/https://www.bahamashclondon.net/consular-information/public-holidays/ + # @source https://web.archive.org/web/20250427182357/https://bisxbahamas.com/wp-content/uploads/2020/12/Trading-Calendar-2021.pdf BS: names: en: Bahamas @@ -41,8 +44,11 @@ holidays: 1st monday in August: name: en: Emancipation Day - 10-12 and if saturday,sunday then next monday: + 10-12 and if saturday,sunday then next monday prior to 2013: substitute: true + name: + en: Discovery Day + 2nd monday in October since 2013: name: en: National Heroes’ Day 12-25: diff --git a/test/fixtures/BS-2015.json b/test/fixtures/BS-2015.json index a626017d9..9f64ff353 100644 --- a/test/fixtures/BS-2015.json +++ b/test/fixtures/BS-2015.json @@ -114,7 +114,7 @@ "end": "2015-10-13T04:00:00.000Z", "name": "National Heroes’ Day", "type": "public", - "rule": "10-12 and if saturday,sunday then next monday", + "rule": "2nd monday in October since 2013", "_weekday": "Mon" }, { diff --git a/test/fixtures/BS-2016.json b/test/fixtures/BS-2016.json index 3f2617687..11ee8c80c 100644 --- a/test/fixtures/BS-2016.json +++ b/test/fixtures/BS-2016.json @@ -119,13 +119,13 @@ "_weekday": "Mon" }, { - "date": "2016-10-12 00:00:00", - "start": "2016-10-12T04:00:00.000Z", - "end": "2016-10-13T04:00:00.000Z", + "date": "2016-10-10 00:00:00", + "start": "2016-10-10T04:00:00.000Z", + "end": "2016-10-11T04:00:00.000Z", "name": "National Heroes’ Day", "type": "public", - "rule": "10-12 and if saturday,sunday then next monday", - "_weekday": "Wed" + "rule": "2nd monday in October since 2013", + "_weekday": "Mon" }, { "date": "2016-12-25 00:00:00", diff --git a/test/fixtures/BS-2017.json b/test/fixtures/BS-2017.json index 23aac9428..00ffa413f 100644 --- a/test/fixtures/BS-2017.json +++ b/test/fixtures/BS-2017.json @@ -99,13 +99,13 @@ "_weekday": "Mon" }, { - "date": "2017-10-12 00:00:00", - "start": "2017-10-12T04:00:00.000Z", - "end": "2017-10-13T04:00:00.000Z", + "date": "2017-10-09 00:00:00", + "start": "2017-10-09T04:00:00.000Z", + "end": "2017-10-10T04:00:00.000Z", "name": "National Heroes’ Day", "type": "public", - "rule": "10-12 and if saturday,sunday then next monday", - "_weekday": "Thu" + "rule": "2nd monday in October since 2013", + "_weekday": "Mon" }, { "date": "2017-12-25 00:00:00", diff --git a/test/fixtures/BS-2018.json b/test/fixtures/BS-2018.json index 4538bd4f1..222b1a9e6 100644 --- a/test/fixtures/BS-2018.json +++ b/test/fixtures/BS-2018.json @@ -99,13 +99,13 @@ "_weekday": "Mon" }, { - "date": "2018-10-12 00:00:00", - "start": "2018-10-12T04:00:00.000Z", - "end": "2018-10-13T04:00:00.000Z", + "date": "2018-10-08 00:00:00", + "start": "2018-10-08T04:00:00.000Z", + "end": "2018-10-09T04:00:00.000Z", "name": "National Heroes’ Day", "type": "public", - "rule": "10-12 and if saturday,sunday then next monday", - "_weekday": "Fri" + "rule": "2nd monday in October since 2013", + "_weekday": "Mon" }, { "date": "2018-12-25 00:00:00", diff --git a/test/fixtures/BS-2019.json b/test/fixtures/BS-2019.json index 593dbcce6..cf45ccfef 100644 --- a/test/fixtures/BS-2019.json +++ b/test/fixtures/BS-2019.json @@ -98,23 +98,13 @@ "rule": "1st monday in August", "_weekday": "Mon" }, - { - "date": "2019-10-12 00:00:00", - "start": "2019-10-12T04:00:00.000Z", - "end": "2019-10-13T04:00:00.000Z", - "name": "National Heroes’ Day", - "type": "public", - "rule": "10-12 and if saturday,sunday then next monday", - "_weekday": "Sat" - }, { "date": "2019-10-14 00:00:00", "start": "2019-10-14T04:00:00.000Z", "end": "2019-10-15T04:00:00.000Z", - "name": "National Heroes’ Day (substitute day)", + "name": "National Heroes’ Day", "type": "public", - "substitute": true, - "rule": "10-12 and if saturday,sunday then next monday", + "rule": "2nd monday in October since 2013", "_weekday": "Mon" }, { diff --git a/test/fixtures/BS-2020.json b/test/fixtures/BS-2020.json index eb1d8f01a..479f93921 100644 --- a/test/fixtures/BS-2020.json +++ b/test/fixtures/BS-2020.json @@ -104,7 +104,7 @@ "end": "2020-10-13T04:00:00.000Z", "name": "National Heroes’ Day", "type": "public", - "rule": "10-12 and if saturday,sunday then next monday", + "rule": "2nd monday in October since 2013", "_weekday": "Mon" }, { diff --git a/test/fixtures/BS-2021.json b/test/fixtures/BS-2021.json index 9621c9b8b..b80bb817d 100644 --- a/test/fixtures/BS-2021.json +++ b/test/fixtures/BS-2021.json @@ -119,13 +119,13 @@ "_weekday": "Mon" }, { - "date": "2021-10-12 00:00:00", - "start": "2021-10-12T04:00:00.000Z", - "end": "2021-10-13T04:00:00.000Z", + "date": "2021-10-11 00:00:00", + "start": "2021-10-11T04:00:00.000Z", + "end": "2021-10-12T04:00:00.000Z", "name": "National Heroes’ Day", "type": "public", - "rule": "10-12 and if saturday,sunday then next monday", - "_weekday": "Tue" + "rule": "2nd monday in October since 2013", + "_weekday": "Mon" }, { "date": "2021-12-25 00:00:00", diff --git a/test/fixtures/BS-2022.json b/test/fixtures/BS-2022.json index f50337040..4df8ce297 100644 --- a/test/fixtures/BS-2022.json +++ b/test/fixtures/BS-2022.json @@ -109,13 +109,13 @@ "_weekday": "Mon" }, { - "date": "2022-10-12 00:00:00", - "start": "2022-10-12T04:00:00.000Z", - "end": "2022-10-13T04:00:00.000Z", + "date": "2022-10-10 00:00:00", + "start": "2022-10-10T04:00:00.000Z", + "end": "2022-10-11T04:00:00.000Z", "name": "National Heroes’ Day", "type": "public", - "rule": "10-12 and if saturday,sunday then next monday", - "_weekday": "Wed" + "rule": "2nd monday in October since 2013", + "_weekday": "Mon" }, { "date": "2022-12-25 00:00:00", diff --git a/test/fixtures/BS-2023.json b/test/fixtures/BS-2023.json index f27ac2ad2..f85a5ecce 100644 --- a/test/fixtures/BS-2023.json +++ b/test/fixtures/BS-2023.json @@ -99,13 +99,13 @@ "_weekday": "Mon" }, { - "date": "2023-10-12 00:00:00", - "start": "2023-10-12T04:00:00.000Z", - "end": "2023-10-13T04:00:00.000Z", + "date": "2023-10-09 00:00:00", + "start": "2023-10-09T04:00:00.000Z", + "end": "2023-10-10T04:00:00.000Z", "name": "National Heroes’ Day", "type": "public", - "rule": "10-12 and if saturday,sunday then next monday", - "_weekday": "Thu" + "rule": "2nd monday in October since 2013", + "_weekday": "Mon" }, { "date": "2023-12-25 00:00:00", diff --git a/test/fixtures/BS-2024.json b/test/fixtures/BS-2024.json index 5a7cfd512..cb5fc68a6 100644 --- a/test/fixtures/BS-2024.json +++ b/test/fixtures/BS-2024.json @@ -98,23 +98,13 @@ "rule": "1st monday in August", "_weekday": "Mon" }, - { - "date": "2024-10-12 00:00:00", - "start": "2024-10-12T04:00:00.000Z", - "end": "2024-10-13T04:00:00.000Z", - "name": "National Heroes’ Day", - "type": "public", - "rule": "10-12 and if saturday,sunday then next monday", - "_weekday": "Sat" - }, { "date": "2024-10-14 00:00:00", "start": "2024-10-14T04:00:00.000Z", "end": "2024-10-15T04:00:00.000Z", - "name": "National Heroes’ Day (substitute day)", + "name": "National Heroes’ Day", "type": "public", - "substitute": true, - "rule": "10-12 and if saturday,sunday then next monday", + "rule": "2nd monday in October since 2013", "_weekday": "Mon" }, { diff --git a/test/fixtures/BS-2025.json b/test/fixtures/BS-2025.json index 4ad548ad7..579d8ac65 100644 --- a/test/fixtures/BS-2025.json +++ b/test/fixtures/BS-2025.json @@ -98,23 +98,13 @@ "rule": "1st monday in August", "_weekday": "Mon" }, - { - "date": "2025-10-12 00:00:00", - "start": "2025-10-12T04:00:00.000Z", - "end": "2025-10-13T04:00:00.000Z", - "name": "National Heroes’ Day", - "type": "public", - "rule": "10-12 and if saturday,sunday then next monday", - "_weekday": "Sun" - }, { "date": "2025-10-13 00:00:00", "start": "2025-10-13T04:00:00.000Z", "end": "2025-10-14T04:00:00.000Z", - "name": "National Heroes’ Day (substitute day)", + "name": "National Heroes’ Day", "type": "public", - "substitute": true, - "rule": "10-12 and if saturday,sunday then next monday", + "rule": "2nd monday in October since 2013", "_weekday": "Mon" }, { diff --git a/test/fixtures/BS-2026.json b/test/fixtures/BS-2026.json index 21adca93f..18fa92566 100644 --- a/test/fixtures/BS-2026.json +++ b/test/fixtures/BS-2026.json @@ -114,7 +114,7 @@ "end": "2026-10-13T04:00:00.000Z", "name": "National Heroes’ Day", "type": "public", - "rule": "10-12 and if saturday,sunday then next monday", + "rule": "2nd monday in October since 2013", "_weekday": "Mon" }, { diff --git a/test/fixtures/BS-2027.json b/test/fixtures/BS-2027.json index b83e97b08..88e68a538 100644 --- a/test/fixtures/BS-2027.json +++ b/test/fixtures/BS-2027.json @@ -119,13 +119,13 @@ "_weekday": "Mon" }, { - "date": "2027-10-12 00:00:00", - "start": "2027-10-12T04:00:00.000Z", - "end": "2027-10-13T04:00:00.000Z", + "date": "2027-10-11 00:00:00", + "start": "2027-10-11T04:00:00.000Z", + "end": "2027-10-12T04:00:00.000Z", "name": "National Heroes’ Day", "type": "public", - "rule": "10-12 and if saturday,sunday then next monday", - "_weekday": "Tue" + "rule": "2nd monday in October since 2013", + "_weekday": "Mon" }, { "date": "2027-12-25 00:00:00", diff --git a/test/fixtures/BS-2028.json b/test/fixtures/BS-2028.json index 63f2b86ab..6abe54340 100644 --- a/test/fixtures/BS-2028.json +++ b/test/fixtures/BS-2028.json @@ -99,13 +99,13 @@ "_weekday": "Mon" }, { - "date": "2028-10-12 00:00:00", - "start": "2028-10-12T04:00:00.000Z", - "end": "2028-10-13T04:00:00.000Z", + "date": "2028-10-09 00:00:00", + "start": "2028-10-09T04:00:00.000Z", + "end": "2028-10-10T04:00:00.000Z", "name": "National Heroes’ Day", "type": "public", - "rule": "10-12 and if saturday,sunday then next monday", - "_weekday": "Thu" + "rule": "2nd monday in October since 2013", + "_weekday": "Mon" }, { "date": "2028-12-25 00:00:00", diff --git a/test/fixtures/BS-2029.json b/test/fixtures/BS-2029.json index 22c0bf3f4..1fb6c7e30 100644 --- a/test/fixtures/BS-2029.json +++ b/test/fixtures/BS-2029.json @@ -99,13 +99,13 @@ "_weekday": "Mon" }, { - "date": "2029-10-12 00:00:00", - "start": "2029-10-12T04:00:00.000Z", - "end": "2029-10-13T04:00:00.000Z", + "date": "2029-10-08 00:00:00", + "start": "2029-10-08T04:00:00.000Z", + "end": "2029-10-09T04:00:00.000Z", "name": "National Heroes’ Day", "type": "public", - "rule": "10-12 and if saturday,sunday then next monday", - "_weekday": "Fri" + "rule": "2nd monday in October since 2013", + "_weekday": "Mon" }, { "date": "2029-12-25 00:00:00",