Skip to content

Commit fa94073

Browse files
committed
Fix date of Labour Day in Western Australia
Celebrated on the 'Monday on or first Monday following the 1st March', which is in the 3rd month, not in the 5th. See https://www.legislation.wa.gov.au/legislation/statutes.nsf/RedirectURL?OpenAgent&query=mrdoc_19831.pdf Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
1 parent 4d964dd commit fa94073

18 files changed

Lines changed: 130 additions & 129 deletions

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
- #140 AU: Fix date of Labour Day in Western Australia
12
- #139 HU: Add non-working days for 2026
23
- #138 ES: Add holidays for 2026
34
- #137 IT: Add holiday 'Festa nazionale di San Francesco d'Assisi, patrono d'Italia'

src/holidata/holidays/AU/WA.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def __init__(self, country):
4040
"""
4141
self.define_holiday() \
4242
.with_name("Labour Day") \
43-
.on(self.monday_on_or_first_monday_following(month=5, day=1)) \
43+
.on(self.monday_on_or_first_monday_following(month=3, day=1)) \
4444
.with_flags("V")
4545

4646
"""

tests/__snapshots__/test_holidata/test_holidata_produces_holidays_for_locale_and_year[en-AU-2011].json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,14 @@
191191
"region": "TAS",
192192
"type": "V"
193193
},
194+
{
195+
"date": "2011-03-07",
196+
"description": "Labour Day",
197+
"locale": "en-AU",
198+
"notes": "",
199+
"region": "WA",
200+
"type": "V"
201+
},
194202
{
195203
"date": "2011-03-14",
196204
"description": "Adelaide Cup Day",
@@ -503,14 +511,6 @@
503511
"region": "QLD",
504512
"type": "F"
505513
},
506-
{
507-
"date": "2011-05-02",
508-
"description": "Labour Day",
509-
"locale": "en-AU",
510-
"notes": "",
511-
"region": "WA",
512-
"type": "V"
513-
},
514514
{
515515
"date": "2011-05-02",
516516
"description": "May Day",

tests/__snapshots__/test_holidata/test_holidata_produces_holidays_for_locale_and_year[en-AU-2012].json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,14 @@
199199
"region": "TAS",
200200
"type": "V"
201201
},
202+
{
203+
"date": "2012-03-05",
204+
"description": "Labour Day",
205+
"locale": "en-AU",
206+
"notes": "",
207+
"region": "WA",
208+
"type": "V"
209+
},
202210
{
203211
"date": "2012-03-12",
204212
"description": "Adelaide Cup Day",
@@ -511,14 +519,6 @@
511519
"region": "QLD",
512520
"type": "V"
513521
},
514-
{
515-
"date": "2012-05-07",
516-
"description": "Labour Day",
517-
"locale": "en-AU",
518-
"notes": "",
519-
"region": "WA",
520-
"type": "V"
521-
},
522522
{
523523
"date": "2012-05-07",
524524
"description": "May Day",

tests/__snapshots__/test_holidata/test_holidata_produces_holidays_for_locale_and_year[en-AU-2013].json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,14 @@
135135
"region": "TAS",
136136
"type": "V"
137137
},
138+
{
139+
"date": "2013-03-04",
140+
"description": "Labour Day",
141+
"locale": "en-AU",
142+
"notes": "",
143+
"region": "WA",
144+
"type": "V"
145+
},
138146
{
139147
"date": "2013-03-11",
140148
"description": "Adelaide Cup Day",
@@ -439,14 +447,6 @@
439447
"region": "WA",
440448
"type": "F"
441449
},
442-
{
443-
"date": "2013-05-06",
444-
"description": "Labour Day",
445-
"locale": "en-AU",
446-
"notes": "",
447-
"region": "WA",
448-
"type": "V"
449-
},
450450
{
451451
"date": "2013-05-06",
452452
"description": "May Day",

tests/__snapshots__/test_holidata/test_holidata_produces_holidays_for_locale_and_year[en-AU-2014].json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,14 @@
135135
"region": "TAS",
136136
"type": "V"
137137
},
138+
{
139+
"date": "2014-03-03",
140+
"description": "Labour Day",
141+
"locale": "en-AU",
142+
"notes": "",
143+
"region": "WA",
144+
"type": "V"
145+
},
138146
{
139147
"date": "2014-03-10",
140148
"description": "Adelaide Cup Day",
@@ -439,14 +447,6 @@
439447
"region": "WA",
440448
"type": "F"
441449
},
442-
{
443-
"date": "2014-05-05",
444-
"description": "Labour Day",
445-
"locale": "en-AU",
446-
"notes": "",
447-
"region": "WA",
448-
"type": "V"
449-
},
450450
{
451451
"date": "2014-05-05",
452452
"description": "May Day",

tests/__snapshots__/test_holidata/test_holidata_produces_holidays_for_locale_and_year[en-AU-2015].json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,14 @@
135135
"region": "TAS",
136136
"type": "V"
137137
},
138+
{
139+
"date": "2015-03-02",
140+
"description": "Labour Day",
141+
"locale": "en-AU",
142+
"notes": "",
143+
"region": "WA",
144+
"type": "V"
145+
},
138146
{
139147
"date": "2015-03-09",
140148
"description": "Adelaide Cup Day",
@@ -447,14 +455,6 @@
447455
"region": "WA",
448456
"type": "F"
449457
},
450-
{
451-
"date": "2015-05-04",
452-
"description": "Labour Day",
453-
"locale": "en-AU",
454-
"notes": "",
455-
"region": "WA",
456-
"type": "V"
457-
},
458458
{
459459
"date": "2015-05-04",
460460
"description": "May Day",

tests/__snapshots__/test_holidata/test_holidata_produces_holidays_for_locale_and_year[en-AU-2016].json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,14 @@
135135
"region": "TAS",
136136
"type": "V"
137137
},
138+
{
139+
"date": "2016-03-07",
140+
"description": "Labour Day",
141+
"locale": "en-AU",
142+
"notes": "",
143+
"region": "WA",
144+
"type": "V"
145+
},
138146
{
139147
"date": "2016-03-14",
140148
"description": "Adelaide Cup Day",
@@ -447,14 +455,6 @@
447455
"region": "QLD",
448456
"type": "V"
449457
},
450-
{
451-
"date": "2016-05-02",
452-
"description": "Labour Day",
453-
"locale": "en-AU",
454-
"notes": "",
455-
"region": "WA",
456-
"type": "V"
457-
},
458458
{
459459
"date": "2016-05-02",
460460
"description": "May Day",

tests/__snapshots__/test_holidata/test_holidata_produces_holidays_for_locale_and_year[en-AU-2017].json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,14 @@
199199
"region": "TAS",
200200
"type": "V"
201201
},
202+
{
203+
"date": "2017-03-06",
204+
"description": "Labour Day",
205+
"locale": "en-AU",
206+
"notes": "",
207+
"region": "WA",
208+
"type": "V"
209+
},
202210
{
203211
"date": "2017-03-13",
204212
"description": "Adelaide Cup Day",
@@ -519,14 +527,6 @@
519527
"region": "QLD",
520528
"type": "V"
521529
},
522-
{
523-
"date": "2017-05-01",
524-
"description": "Labour Day",
525-
"locale": "en-AU",
526-
"notes": "",
527-
"region": "WA",
528-
"type": "V"
529-
},
530530
{
531531
"date": "2017-05-01",
532532
"description": "May Day",

tests/__snapshots__/test_holidata/test_holidata_produces_holidays_for_locale_and_year[en-AU-2018].json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,14 @@
135135
"region": "TAS",
136136
"type": "V"
137137
},
138+
{
139+
"date": "2018-03-05",
140+
"description": "Labour Day",
141+
"locale": "en-AU",
142+
"notes": "",
143+
"region": "WA",
144+
"type": "V"
145+
},
138146
{
139147
"date": "2018-03-12",
140148
"description": "Adelaide Cup Day",
@@ -455,14 +463,6 @@
455463
"region": "QLD",
456464
"type": "V"
457465
},
458-
{
459-
"date": "2018-05-07",
460-
"description": "Labour Day",
461-
"locale": "en-AU",
462-
"notes": "",
463-
"region": "WA",
464-
"type": "V"
465-
},
466466
{
467467
"date": "2018-05-07",
468468
"description": "May Day",

0 commit comments

Comments
 (0)