Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Thailand holidays #1626

Merged
merged 9 commits into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from 4 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
4 changes: 3 additions & 1 deletion holidays/countries/thailand.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,8 +558,9 @@ def _populate_government_holidays(self):
2021: (MAY, 13),
2022: (MAY, 17),
2023: (MAY, 11),
2024: (MAY, 10),
}
if 1957 <= self._year <= 2023 and self._year != 1999:
if 1957 <= self._year <= 2024 and self._year != 1999:
arkid15r marked this conversation as resolved.
Show resolved Hide resolved
self._add_observed(
# Royal Ploughing Ceremony.
self._add_holiday(tr("วันพืชมงคล"), raeknakhwan_dates.get(self._year, (MAY, 13)))
Expand Down Expand Up @@ -795,6 +796,7 @@ class ThailandStaticHolidays:
(JUL, 31, thai_bridge_public_holiday),
(DEC, 29, thai_bridge_public_holiday),
),
2024: (DEC, 30, thai_bridge_public_holiday),
}

special_public_holidays_observed = {
Expand Down
2 changes: 2 additions & 0 deletions snapshots/countries/TH_COMMON.json
Original file line number Diff line number Diff line change
Expand Up @@ -2056,6 +2056,7 @@
"2024-05-01": "National Labour Day",
"2024-05-04": "Coronation Day",
"2024-05-06": "Coronation Day (in lieu)",
"2024-05-10": "Royal Ploughing Ceremony",
"2024-05-22": "Visakha Bucha",
"2024-06-03": "HM Queen Suthida's Birthday",
"2024-07-20": "Asarnha Bucha",
Expand All @@ -2072,6 +2073,7 @@
"2024-11-15": "Loy Krathong",
"2024-12-05": "HM King Bhumibol Adulyadej the Great's Birthday; National Day; National Father's Day",
"2024-12-10": "Constitution Day",
"2024-12-30": "Bridge Public Holiday",
"2024-12-31": "New Year's Eve",
"2025-01-01": "New Year's Day",
"2025-01-11": "National Children's Day",
Expand Down
2 changes: 2 additions & 0 deletions tests/countries/test_thailand.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ def test_special_holidays(self):
"2023-05-05",
"2023-07-31",
"2023-12-29",
"2024-12-30",
)
dt_observed = (
"2007-12-24",
Expand Down Expand Up @@ -638,6 +639,7 @@ def test_raeknakhwan(self):
("2021-05-13", name),
("2022-05-17", name),
("2023-05-11", name),
("2024-05-10", name),
)

def test_armed_forces_holiday(self):
Expand Down