Skip to content

Commit

Permalink
Merge pull request #500 from commenthol/fix-gb-sct-st-andrews
Browse files Browse the repository at this point in the history
fix(GB-SCT,#494): add substitute day for st andrew's day
  • Loading branch information
commenthol authored Dec 27, 2024
2 parents 248b48d + 8f0fb47 commit 21fdb16
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 0 deletions.
4 changes: 4 additions & 0 deletions data/countries/GB.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions test/fixtures/GB-SCT-2019.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 10 additions & 0 deletions test/fixtures/GB-SCT-2024.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 10 additions & 0 deletions test/fixtures/GB-SCT-2025.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 21fdb16

Please sign in to comment.