Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
- #141 AU: Fix dates for 'Australia Day' and 'Anzac Day'

2025.12.0
- Upgrade requirement arrow to 1.4.0
- Upgrade test requirements pytest to 9.0.2 and syrupy to 5.0.0
Expand Down
4 changes: 2 additions & 2 deletions src/holidata/holidays/AU/ACT.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def wrapper(year):
date = SmartDayArrow(year, month, day)

if date.weekday() in ["saturday", "sunday"]:
date.shift_to_weekday("monday", including=True)
return date.shift_to_weekday("monday", including=True)

return date

Expand All @@ -218,7 +218,7 @@ def wrapper(year):
date = SmartDayArrow(year, month, day)

if date.weekday() == "sunday":
date.shift_to_weekday("monday", including=True)
return date.shift_to_weekday("monday", including=True)

return date

Expand Down
2 changes: 1 addition & 1 deletion src/holidata/holidays/AU/NSW.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def wrapper(year):
date = SmartDayArrow(year, month, day)

if date.weekday() in ["saturday", "sunday"]:
date.shift_to_weekday("monday", including=True)
return date.shift_to_weekday("monday", including=True)

return date

Expand Down
4 changes: 2 additions & 2 deletions src/holidata/holidays/AU/NT.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def wrapper(year):
date = SmartDayArrow(year, month, day)

if date.weekday() in ["saturday", "sunday"]:
date.shift_to_weekday("monday", including=True)
return date.shift_to_weekday("monday", including=True)

return date

Expand All @@ -203,7 +203,7 @@ def wrapper(year):
date = SmartDayArrow(year, month, day)

if date.weekday() == "sunday":
date.shift_to_weekday("monday", including=True)
return date.shift_to_weekday("monday", including=True)

return date

Expand Down
4 changes: 2 additions & 2 deletions src/holidata/holidays/AU/QLD.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def wrapper(year):
date = SmartDayArrow(year, month, day)

if date.weekday() in ["saturday", "sunday"]:
date.shift_to_weekday("monday", including=True)
return date.shift_to_weekday("monday", including=True)

return date

Expand All @@ -290,7 +290,7 @@ def wrapper(year):
date = SmartDayArrow(year, month, day)

if date.weekday() == "sunday":
date.shift_to_weekday("monday", including=True)
return date.shift_to_weekday("monday", including=True)

return date

Expand Down
2 changes: 1 addition & 1 deletion src/holidata/holidays/AU/SA.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def wrapper(year):
date = SmartDayArrow(year, month, day)

if date.weekday() in ["saturday", "sunday"]:
date.shift_to_weekday("monday", including=True)
return date.shift_to_weekday("monday", including=True)

return date

Expand Down
2 changes: 1 addition & 1 deletion src/holidata/holidays/AU/TAS.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def wrapper(year):
date = SmartDayArrow(year, month, day)

if date.weekday() in ["saturday", "sunday"]:
date.shift_to_weekday("monday", including=True)
return date.shift_to_weekday("monday", including=True)

return date

Expand Down
2 changes: 1 addition & 1 deletion src/holidata/holidays/AU/VIC.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def wrapper(year):
date = SmartDayArrow(year, month, day)

if date.weekday() in ["saturday", "sunday"]:
date.shift_to_weekday("monday", including=True)
return date.shift_to_weekday("monday", including=True)

return date

Expand Down
2 changes: 1 addition & 1 deletion src/holidata/holidays/AU/WA.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def wrapper(year):
date = SmartDayArrow(year, month, day)

if date.weekday() in ["saturday", "sunday"]:
date.shift_to_weekday("monday", including=True)
return date.shift_to_weekday("monday", including=True)

return date

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,63 +64,63 @@
"type": "F"
},
{
"date": "2013-01-26",
"date": "2013-01-28",
"description": "Australia Day",
"locale": "en-AU",
"notes": "",
"region": "ACT",
"type": "V"
},
{
"date": "2013-01-26",
"date": "2013-01-28",
"description": "Australia Day",
"locale": "en-AU",
"notes": "",
"region": "NSW",
"type": "V"
},
{
"date": "2013-01-26",
"date": "2013-01-28",
"description": "Australia Day",
"locale": "en-AU",
"notes": "",
"region": "NT",
"type": "V"
},
{
"date": "2013-01-26",
"date": "2013-01-28",
"description": "Australia Day",
"locale": "en-AU",
"notes": "",
"region": "QLD",
"type": "V"
},
{
"date": "2013-01-26",
"date": "2013-01-28",
"description": "Australia Day",
"locale": "en-AU",
"notes": "",
"region": "SA",
"type": "V"
},
{
"date": "2013-01-26",
"date": "2013-01-28",
"description": "Australia Day",
"locale": "en-AU",
"notes": "",
"region": "TAS",
"type": "V"
},
{
"date": "2013-01-26",
"date": "2013-01-28",
"description": "Australia Day",
"locale": "en-AU",
"notes": "",
"region": "VIC",
"type": "V"
},
{
"date": "2013-01-26",
"date": "2013-01-28",
"description": "Australia Day",
"locale": "en-AU",
"notes": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,63 +64,63 @@
"type": "F"
},
{
"date": "2014-01-26",
"date": "2014-01-27",
"description": "Australia Day",
"locale": "en-AU",
"notes": "",
"region": "ACT",
"type": "V"
},
{
"date": "2014-01-26",
"date": "2014-01-27",
"description": "Australia Day",
"locale": "en-AU",
"notes": "",
"region": "NSW",
"type": "V"
},
{
"date": "2014-01-26",
"date": "2014-01-27",
"description": "Australia Day",
"locale": "en-AU",
"notes": "",
"region": "NT",
"type": "V"
},
{
"date": "2014-01-26",
"date": "2014-01-27",
"description": "Australia Day",
"locale": "en-AU",
"notes": "",
"region": "QLD",
"type": "V"
},
{
"date": "2014-01-26",
"date": "2014-01-27",
"description": "Australia Day",
"locale": "en-AU",
"notes": "",
"region": "SA",
"type": "V"
},
{
"date": "2014-01-26",
"date": "2014-01-27",
"description": "Australia Day",
"locale": "en-AU",
"notes": "",
"region": "TAS",
"type": "V"
},
{
"date": "2014-01-26",
"date": "2014-01-27",
"description": "Australia Day",
"locale": "en-AU",
"notes": "",
"region": "VIC",
"type": "V"
},
{
"date": "2014-01-26",
"date": "2014-01-27",
"description": "Australia Day",
"locale": "en-AU",
"notes": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,63 +64,63 @@
"type": "F"
},
{
"date": "2019-01-26",
"date": "2019-01-28",
"description": "Australia Day",
"locale": "en-AU",
"notes": "",
"region": "ACT",
"type": "V"
},
{
"date": "2019-01-26",
"date": "2019-01-28",
"description": "Australia Day",
"locale": "en-AU",
"notes": "",
"region": "NSW",
"type": "V"
},
{
"date": "2019-01-26",
"date": "2019-01-28",
"description": "Australia Day",
"locale": "en-AU",
"notes": "",
"region": "NT",
"type": "V"
},
{
"date": "2019-01-26",
"date": "2019-01-28",
"description": "Australia Day",
"locale": "en-AU",
"notes": "",
"region": "QLD",
"type": "V"
},
{
"date": "2019-01-26",
"date": "2019-01-28",
"description": "Australia Day",
"locale": "en-AU",
"notes": "",
"region": "SA",
"type": "V"
},
{
"date": "2019-01-26",
"date": "2019-01-28",
"description": "Australia Day",
"locale": "en-AU",
"notes": "",
"region": "TAS",
"type": "V"
},
{
"date": "2019-01-26",
"date": "2019-01-28",
"description": "Australia Day",
"locale": "en-AU",
"notes": "",
"region": "VIC",
"type": "V"
},
{
"date": "2019-01-26",
"date": "2019-01-28",
"description": "Australia Day",
"locale": "en-AU",
"notes": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,63 +64,63 @@
"type": "F"
},
{
"date": "2020-01-26",
"date": "2020-01-27",
"description": "Australia Day",
"locale": "en-AU",
"notes": "",
"region": "ACT",
"type": "V"
},
{
"date": "2020-01-26",
"date": "2020-01-27",
"description": "Australia Day",
"locale": "en-AU",
"notes": "",
"region": "NSW",
"type": "V"
},
{
"date": "2020-01-26",
"date": "2020-01-27",
"description": "Australia Day",
"locale": "en-AU",
"notes": "",
"region": "NT",
"type": "V"
},
{
"date": "2020-01-26",
"date": "2020-01-27",
"description": "Australia Day",
"locale": "en-AU",
"notes": "",
"region": "QLD",
"type": "V"
},
{
"date": "2020-01-26",
"date": "2020-01-27",
"description": "Australia Day",
"locale": "en-AU",
"notes": "",
"region": "SA",
"type": "V"
},
{
"date": "2020-01-26",
"date": "2020-01-27",
"description": "Australia Day",
"locale": "en-AU",
"notes": "",
"region": "TAS",
"type": "V"
},
{
"date": "2020-01-26",
"date": "2020-01-27",
"description": "Australia Day",
"locale": "en-AU",
"notes": "",
"region": "VIC",
"type": "V"
},
{
"date": "2020-01-26",
"date": "2020-01-27",
"description": "Australia Day",
"locale": "en-AU",
"notes": "",
Expand Down
Loading