From 8e95697356babbd8822691412324e991b5a54aa8 Mon Sep 17 00:00:00 2001 From: commenthol Date: Sat, 28 Mar 2026 07:50:06 +0100 Subject: [PATCH 1/3] fix(AU-NSW): Anzac Day substitute rule --- data/countries/AU.yaml | 4 ++++ test/fixtures/AU-NSW-2015.json | 10 ++++++++++ test/fixtures/AU-NSW-2020.json | 10 ++++++++++ test/fixtures/AU-NSW-2026.json | 10 ++++++++++ 4 files changed, 34 insertions(+) diff --git a/data/countries/AU.yaml b/data/countries/AU.yaml index c9d5e1bfb..d2bf0d746 100644 --- a/data/countries/AU.yaml +++ b/data/countries/AU.yaml @@ -96,6 +96,10 @@ holidays: zones: - Australia/Sydney days: + 04-25 and if saturday then next monday: + substitute: true + name: + en: Anzac Day 2nd monday in June: name: en: Queen's Birthday diff --git a/test/fixtures/AU-NSW-2015.json b/test/fixtures/AU-NSW-2015.json index 9a71aa59f..490271cb9 100644 --- a/test/fixtures/AU-NSW-2015.json +++ b/test/fixtures/AU-NSW-2015.json @@ -62,6 +62,16 @@ "rule": "04-25", "_weekday": "Sat" }, + { + "date": "2015-04-27 00:00:00", + "start": "2015-04-26T14:00:00.000Z", + "end": "2015-04-27T14:00:00.000Z", + "name": "Anzac Day (substitute day)", + "type": "public", + "substitute": true, + "rule": "04-25 and if saturday then next monday", + "_weekday": "Mon" + }, { "date": "2015-05-10 00:00:00", "start": "2015-05-09T14:00:00.000Z", diff --git a/test/fixtures/AU-NSW-2020.json b/test/fixtures/AU-NSW-2020.json index 686c327c6..badab8fac 100644 --- a/test/fixtures/AU-NSW-2020.json +++ b/test/fixtures/AU-NSW-2020.json @@ -62,6 +62,16 @@ "rule": "04-25", "_weekday": "Sat" }, + { + "date": "2020-04-27 00:00:00", + "start": "2020-04-26T14:00:00.000Z", + "end": "2020-04-27T14:00:00.000Z", + "name": "Anzac Day (substitute day)", + "type": "public", + "substitute": true, + "rule": "04-25 and if saturday then next monday", + "_weekday": "Mon" + }, { "date": "2020-05-10 00:00:00", "start": "2020-05-09T14:00:00.000Z", diff --git a/test/fixtures/AU-NSW-2026.json b/test/fixtures/AU-NSW-2026.json index 84dd3d9c5..6dd7df665 100644 --- a/test/fixtures/AU-NSW-2026.json +++ b/test/fixtures/AU-NSW-2026.json @@ -62,6 +62,16 @@ "rule": "04-25", "_weekday": "Sat" }, + { + "date": "2026-04-27 00:00:00", + "start": "2026-04-26T14:00:00.000Z", + "end": "2026-04-27T14:00:00.000Z", + "name": "Anzac Day (substitute day)", + "type": "public", + "substitute": true, + "rule": "04-25 and if saturday then next monday", + "_weekday": "Mon" + }, { "date": "2026-05-10 00:00:00", "start": "2026-05-09T14:00:00.000Z", From 97fd1aafc75282fc93e8321f2875d98feef565c1 Mon Sep 17 00:00:00 2001 From: Yisu Kim Date: Thu, 2 Apr 2026 19:36:08 +1100 Subject: [PATCH 2/3] fix(AU): ANZAC Day substitute rule for NSW NSW from 2026-04-25 --- data/countries/AU.yaml | 8 ++++++++ test/fixtures/AU-NSW-2026.json | 2 +- test/fixtures/AU-NSW-2027.json | 10 ++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/data/countries/AU.yaml b/data/countries/AU.yaml index d2bf0d746..0d683163c 100644 --- a/data/countries/AU.yaml +++ b/data/countries/AU.yaml @@ -100,6 +100,14 @@ holidays: substitute: true name: en: Anzac Day + active: + - to: "2026-04-25" + 04-25 and if saturday,sunday then next monday: + substitute: true + name: + en: Anzac Day + active: + - from: "2026-04-25" 2nd monday in June: name: en: Queen's Birthday diff --git a/test/fixtures/AU-NSW-2026.json b/test/fixtures/AU-NSW-2026.json index 6dd7df665..f1699d10c 100644 --- a/test/fixtures/AU-NSW-2026.json +++ b/test/fixtures/AU-NSW-2026.json @@ -69,7 +69,7 @@ "name": "Anzac Day (substitute day)", "type": "public", "substitute": true, - "rule": "04-25 and if saturday then next monday", + "rule": "04-25 and if saturday,sunday then next monday", "_weekday": "Mon" }, { diff --git a/test/fixtures/AU-NSW-2027.json b/test/fixtures/AU-NSW-2027.json index 690e97105..a5a085423 100644 --- a/test/fixtures/AU-NSW-2027.json +++ b/test/fixtures/AU-NSW-2027.json @@ -62,6 +62,16 @@ "rule": "04-25", "_weekday": "Sun" }, + { + "date": "2027-04-26 00:00:00", + "start": "2027-04-25T14:00:00.000Z", + "end": "2027-04-26T14:00:00.000Z", + "name": "Anzac Day (substitute day)", + "type": "public", + "substitute": true, + "rule": "04-25 and if saturday,sunday then next monday", + "_weekday": "Mon" + }, { "date": "2027-05-09 00:00:00", "start": "2027-05-08T14:00:00.000Z", From 1e70aef930c8e7fa0e7706193b058f5ef3cea9d3 Mon Sep 17 00:00:00 2001 From: Yisu Kim Date: Thu, 2 Apr 2026 20:52:55 +1100 Subject: [PATCH 3/3] docs(AU): update legislation sources for NSW --- data/countries/AU.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/countries/AU.yaml b/data/countries/AU.yaml index 0d683163c..00fb231e9 100644 --- a/data/countries/AU.yaml +++ b/data/countries/AU.yaml @@ -90,7 +90,8 @@ holidays: 1st monday in October: name: en: Labour Day - # @source https://www.legislation.nsw.gov.au/~/pdf/view/act/2010/115/whole + # @source https://www.legislation.nsw.gov.au/view/whole/html/inforce/current/act-2010-115 + # @source https://www.legislation.nsw.gov.au/view/whole/html/inforce/current/sl-2011-0081 NSW: name: New South Wales zones: