From fe6a788a82dfbc36c82324e6e4176f89452a4443 Mon Sep 17 00:00:00 2001 From: Kiel Hurley Date: Tue, 30 Jun 2020 23:04:38 +1200 Subject: [PATCH] Capitalisation of Anzac Day Checked the legislation, and it should be Anzac, not ANZAC --- holidays/nz.yaml | 2 +- test.de.log | 4 ++-- test.en.log | 4 ++-- test.js | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/holidays/nz.yaml b/holidays/nz.yaml index c2efe219..f96688c9 100644 --- a/holidays/nz.yaml +++ b/holidays/nz.yaml @@ -8,7 +8,7 @@ PH: # https://en.wikipedia.org/wiki/Public_holidays_in_New_Zealand - {'name': 'Waitangi Day', 'fixed_date': [2, 6]} - {'name': 'Good Friday', 'variable_date': easter, 'offset': -2} - {'name': 'Easter Monday', 'variable_date': easter, 'offset': 1} - - {'name': 'ANZAC Day', 'fixed_date': [4, 25]} + - {'name': 'Anzac Day', 'fixed_date': [4, 25]} - {'name': 'Queen''s Birthday', 'variable_date': firstJuneMonday} - {'name': 'Labour Day', 'variable_date': firstOctoberMonday, 'offset': 21} - {'name': 'Christmas Day', 'fixed_date': [12, 25]} diff --git a/test.de.log b/test.de.log index 7c25bfd4..95d5d771 100644 --- a/test.de.log +++ b/test.de.log @@ -1076,10 +1076,10 @@ With warnings: "Variable days: Weekday in given week." for "PH": PASSED With warnings: *PH <--- (Diese Regel ist nicht sehr aussagekräftig, da kein Zeit Selektor angegeben wurde. Ein Zeit Selektor ist die Komponente die angibt, zu welcher Tageszeit ein Objekt geöffnet hat, zum Beispiel "10:00-19:00". Bitte füge eine Zeitangabe oder einen Kommentar hinzu, um dies zu verbessern.) -"Variable days: Ireland public holidays." for "PH": PASSED +"Variable days: New Zealand public holidays." for "PH": PASSED With warnings: *PH <--- (Diese Regel ist nicht sehr aussagekräftig, da kein Zeit Selektor angegeben wurde. Ein Zeit Selektor ist die Komponente die angibt, zu welcher Tageszeit ein Objekt geöffnet hat, zum Beispiel "10:00-19:00". Bitte füge eine Zeitangabe oder einen Kommentar hinzu, um dies zu verbessern.) -"Variable days: New Zealand public holidays." for "PH": PASSED +"Variable days: Ireland public holidays." for "PH": PASSED With warnings: *PH <--- (Diese Regel ist nicht sehr aussagekräftig, da kein Zeit Selektor angegeben wurde. Ein Zeit Selektor ist die Komponente die angibt, zu welcher Tageszeit ein Objekt geöffnet hat, zum Beispiel "10:00-19:00". Bitte füge eine Zeitangabe oder einen Kommentar hinzu, um dies zu verbessern.) "Weekdays" for "Mo,Th,Sa,Su 10:00-12:00": PASSED diff --git a/test.en.log b/test.en.log index 50b385c2..f8b98315 100644 --- a/test.en.log +++ b/test.en.log @@ -897,10 +897,10 @@ With warnings: "Variable days: Weekday in given week." for "PH": PASSED With warnings: *PH <--- (This rule is not very explicit because there is no time selector being used. A time selector is the part specifying hours when the object is opened, for example "10:00-19:00". Please add a time selector to this rule or use a comment to make it more explicit.) -"Variable days: Ireland public holidays." for "PH": PASSED +"Variable days: New Zealand public holidays." for "PH": PASSED With warnings: *PH <--- (This rule is not very explicit because there is no time selector being used. A time selector is the part specifying hours when the object is opened, for example "10:00-19:00". Please add a time selector to this rule or use a comment to make it more explicit.) -"Variable days: New Zealand public holidays." for "PH": PASSED +"Variable days: Ireland public holidays." for "PH": PASSED With warnings: *PH <--- (This rule is not very explicit because there is no time selector being used. A time selector is the part specifying hours when the object is opened, for example "10:00-19:00". Please add a time selector to this rule or use a comment to make it more explicit.) "Weekdays" for "Mo,Th,Sa,Su 10:00-12:00": PASSED diff --git a/test.js b/test.js index 7715d476..01ebb028 100755 --- a/test.js +++ b/test.js @@ -2458,7 +2458,7 @@ test.addTest('Variable days: New Zealand public holidays.', [ [ '2020-02-06 00:00', '2020-02-06 24:00', false, 'Waitangi Day' ], [ '2020-04-10 00:00', '2020-04-10 24:00', false, 'Good Friday' ], [ '2020-04-13 00:00', '2020-04-13 24:00', false, 'Easter Monday' ], - [ '2020-04-25 00:00', '2020-04-25 24:00', false, 'ANZAC Day' ], + [ '2020-04-25 00:00', '2020-04-25 24:00', false, 'Anzac Day' ], [ '2020-06-01 00:00', '2020-06-01 24:00', false, 'Queen\'s Birthday' ], [ '2020-10-26 00:00', '2020-10-26 24:00', false, 'Labour Day' ], [ '2020-12-25 00:00', '2020-12-25 24:00', false, 'Christmas Day' ], @@ -2468,7 +2468,7 @@ test.addTest('Variable days: New Zealand public holidays.', [ [ '2021-02-06 00:00', '2021-02-06 24:00', false, 'Waitangi Day' ], [ '2021-04-02 00:00', '2021-04-02 24:00', false, 'Good Friday' ], [ '2021-04-05 00:00', '2021-04-05 24:00', false, 'Easter Monday' ], - [ '2021-04-25 00:00', '2021-04-25 24:00', false, 'ANZAC Day' ], + [ '2021-04-25 00:00', '2021-04-25 24:00', false, 'Anzac Day' ], [ '2021-06-07 00:00', '2021-06-07 24:00', false, 'Queen\'s Birthday' ], [ '2021-10-25 00:00', '2021-10-25 24:00', false, 'Labour Day' ], [ '2021-12-25 00:00', '2021-12-25 24:00', false, 'Christmas Day' ], @@ -2478,7 +2478,7 @@ test.addTest('Variable days: New Zealand public holidays.', [ [ '2022-02-06 00:00', '2022-02-06 24:00', false, 'Waitangi Day' ], [ '2022-04-15 00:00', '2022-04-15 24:00', false, 'Good Friday' ], [ '2022-04-18 00:00', '2022-04-18 24:00', false, 'Easter Monday' ], - [ '2022-04-25 00:00', '2022-04-25 24:00', false, 'ANZAC Day' ], + [ '2022-04-25 00:00', '2022-04-25 24:00', false, 'Anzac Day' ], [ '2022-06-06 00:00', '2022-06-06 24:00', false, 'Queen\'s Birthday' ], [ '2022-10-24 00:00', '2022-10-24 24:00', false, 'Labour Day' ], [ '2022-12-25 00:00', '2022-12-25 24:00', false, 'Christmas Day' ],