Skip to content

Commit

Permalink
Update Australia holidays: fix Christmas Day in ACT (#1986)
Browse files Browse the repository at this point in the history
  • Loading branch information
KJhellico authored Sep 10, 2024
1 parent 3dfc04a commit 7ab98cb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion holidays/countries/australia.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def _populate_subdiv_act_public_holidays(self):
self._add_observed(self._add_christmas_day(name), rule=SAT_SUN_TO_NEXT_MON_TUE)
elif self._year >= 1958:
dec_25 = (DEC, 25)
if self._is_weekend(dec_25) or (self._year >= 1992 and self._is_saturday(dec_25)):
if self._is_sunday(dec_25) or (self._year >= 1992 and self._is_saturday(dec_25)):
self._add_holiday_1st_mon_from_dec_25(name)
else:
self._add_christmas_day(name)
Expand Down
12 changes: 8 additions & 4 deletions snapshots/countries/AU_ACT.json
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@
"1965-06-14": "Queen's Birthday",
"1965-08-02": "Bank Holiday",
"1965-10-04": "Labor Day",
"1965-12-27": "Boxing Day; Christmas Day",
"1965-12-25": "Christmas Day",
"1965-12-27": "Boxing Day",
"1966-01-01": "New Year's Day",
"1966-01-31": "Australia Day",
"1966-03-21": "Canberra Day",
Expand Down Expand Up @@ -260,7 +261,8 @@
"1971-06-14": "Queen's Birthday",
"1971-08-02": "Bank Holiday",
"1971-10-04": "Labor Day",
"1971-12-27": "Boxing Day; Christmas Day",
"1971-12-25": "Christmas Day",
"1971-12-27": "Boxing Day",
"1972-01-01": "New Year's Day",
"1972-01-31": "Australia Day",
"1972-03-20": "Canberra Day",
Expand Down Expand Up @@ -319,7 +321,8 @@
"1976-06-14": "Queen's Birthday",
"1976-08-02": "Bank Holiday",
"1976-10-04": "Labor Day",
"1976-12-27": "Boxing Day; Christmas Day",
"1976-12-25": "Christmas Day",
"1976-12-27": "Boxing Day",
"1977-01-01": "New Year's Day",
"1977-01-31": "Australia Day",
"1977-03-21": "Canberra Day",
Expand Down Expand Up @@ -390,7 +393,8 @@
"1982-06-14": "Queen's Birthday",
"1982-08-02": "Bank Holiday",
"1982-10-04": "Labor Day",
"1982-12-27": "Boxing Day; Christmas Day",
"1982-12-25": "Christmas Day",
"1982-12-27": "Boxing Day",
"1983-01-01": "New Year's Day",
"1983-01-31": "Australia Day",
"1983-03-21": "Canberra Day",
Expand Down

0 comments on commit 7ab98cb

Please sign in to comment.