Skip to content

Commit

Permalink
Fixed up any remaining reference to the old start date
Browse files Browse the repository at this point in the history
  • Loading branch information
PPsyrius committed Dec 12, 2024
1 parent 4459030 commit 2785a4a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions holidays/calendars/thai.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,9 @@ class _ThaiLunisolar:
}

# While Buddhist Holy Days have been observed since the 1900s
# Due to the calendar changes in 1941 (B.E. 2484) and that
# our array only goes up to B.E. 2700; We'll thus only populate
# the data for 1941-2157 (B.E. 2484-2700).
# Thailand's Public Holiday Act wasn't codified until 1914 (B.E. 2457)
# and that our array only goes up to B.E. 2700; We'll thus only populate
# the data for 1914-2157 (B.E. 2457-2700).
# Sources: หนังสือเวียนกรมการปกครอง กระทรวงมหาดไทย มท 0310.1/ว4 5 ก.พ. 2539
START_DATE = date(1913, 11, 28)
START_YEAR = 1914
Expand Down Expand Up @@ -286,7 +286,7 @@ def _get_start_date(self, year: int) -> Optional[date]:
Calculate the start date of that particular Thai Lunar Calendar Year.
This usually falls in November or December of the previous Gregorian
year in question. Should the year be outside of working scope
(1941-2157: B.E 2484-2700), this will returns None instead.
(1914-2157: B.E 2457-2700), this will returns None instead.
:param year:
The Gregorian year.
Expand Down
3 changes: 2 additions & 1 deletion holidays/countries/thailand.py
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,8 @@ def _populate_government_holidays(self):
# No Future Fixed Date Holidays

# วันพืชมงคล
# Restarts in 1947 (B.E. 2490), become holiday again between 1952-
# Restarts in 1947 (B.E. 2490), become holiday again since 1952
# but since we lacked the exact date records, this will be ignored.
# Become an holiday again until 1960 (B.E. 2503).
# Removed as an holiday in 1999 due to financial crisis, reinstated in 2000.
# No event was held in 2021 due to local Covid-19 situation, though it stays a day off.
Expand Down

0 comments on commit 2785a4a

Please sign in to comment.