From 2785a4a51328e1602dfda45bff240437673445a4 Mon Sep 17 00:00:00 2001 From: PPsyrius <19505219+PPsyrius@users.noreply.github.com> Date: Thu, 12 Dec 2024 14:46:42 +0700 Subject: [PATCH] Fixed up any remaining reference to the old start date --- holidays/calendars/thai.py | 8 ++++---- holidays/countries/thailand.py | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/holidays/calendars/thai.py b/holidays/calendars/thai.py index e668969b2..510fc8fc0 100644 --- a/holidays/calendars/thai.py +++ b/holidays/calendars/thai.py @@ -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 @@ -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. diff --git a/holidays/countries/thailand.py b/holidays/countries/thailand.py index 9d6366d77..da4da1565 100644 --- a/holidays/countries/thailand.py +++ b/holidays/countries/thailand.py @@ -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.