From 8f0fb474f843b1e81423276f741905999906698d Mon Sep 17 00:00:00 2001 From: commenthol Date: Fri, 27 Dec 2024 12:32:07 +0100 Subject: [PATCH] fix(GB-SCT,#494): add substitute day for st andrew's day --- data/countries/GB.yaml | 4 ++++ test/fixtures/GB-SCT-2019.json | 10 ++++++++++ test/fixtures/GB-SCT-2024.json | 10 ++++++++++ test/fixtures/GB-SCT-2025.json | 10 ++++++++++ 4 files changed, 34 insertions(+) diff --git a/data/countries/GB.yaml b/data/countries/GB.yaml index 1e028738e..05a8a6b40 100644 --- a/data/countries/GB.yaml +++ b/data/countries/GB.yaml @@ -477,6 +477,10 @@ holidays: 11-30: name: en: St Andrew’s Day + substitutes 11-30 if saturday, sunday then next monday: + substitute: true + name: + en: St Andrew’s Day # regions: # ABD: # name: Aberdeenshire diff --git a/test/fixtures/GB-SCT-2019.json b/test/fixtures/GB-SCT-2019.json index a8ab3725d..a9c4b4ca3 100644 --- a/test/fixtures/GB-SCT-2019.json +++ b/test/fixtures/GB-SCT-2019.json @@ -98,6 +98,16 @@ "rule": "11-30", "_weekday": "Sat" }, + { + "date": "2019-12-02 00:00:00", + "start": "2019-12-02T00:00:00.000Z", + "end": "2019-12-03T00:00:00.000Z", + "name": "St Andrew’s Day (substitute day)", + "type": "public", + "substitute": true, + "rule": "substitutes 11-30 if saturday, sunday then next monday", + "_weekday": "Mon" + }, { "date": "2019-12-25 00:00:00", "start": "2019-12-25T00:00:00.000Z", diff --git a/test/fixtures/GB-SCT-2024.json b/test/fixtures/GB-SCT-2024.json index 1918e3a24..450ebd329 100644 --- a/test/fixtures/GB-SCT-2024.json +++ b/test/fixtures/GB-SCT-2024.json @@ -98,6 +98,16 @@ "rule": "11-30", "_weekday": "Sat" }, + { + "date": "2024-12-02 00:00:00", + "start": "2024-12-02T00:00:00.000Z", + "end": "2024-12-03T00:00:00.000Z", + "name": "St Andrew’s Day (substitute day)", + "type": "public", + "substitute": true, + "rule": "substitutes 11-30 if saturday, sunday then next monday", + "_weekday": "Mon" + }, { "date": "2024-12-25 00:00:00", "start": "2024-12-25T00:00:00.000Z", diff --git a/test/fixtures/GB-SCT-2025.json b/test/fixtures/GB-SCT-2025.json index 9913bf9e5..23d022718 100644 --- a/test/fixtures/GB-SCT-2025.json +++ b/test/fixtures/GB-SCT-2025.json @@ -98,6 +98,16 @@ "rule": "11-30", "_weekday": "Sun" }, + { + "date": "2025-12-01 00:00:00", + "start": "2025-12-01T00:00:00.000Z", + "end": "2025-12-02T00:00:00.000Z", + "name": "St Andrew’s Day (substitute day)", + "type": "public", + "substitute": true, + "rule": "substitutes 11-30 if saturday, sunday then next monday", + "_weekday": "Mon" + }, { "date": "2025-12-25 00:00:00", "start": "2025-12-25T00:00:00.000Z",