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

"Weltfrauentag" regions wrong #77

Open
s-schmoll opened this issue Mar 4, 2024 · 1 comment
Open

"Weltfrauentag" regions wrong #77

s-schmoll opened this issue Mar 4, 2024 · 1 comment

Comments

@s-schmoll
Copy link

s-schmoll commented Mar 4, 2024

Hey there,

thanks again for adding the regions array. It seems like there has been added a little bug for "WELTFRAUENTAG". This holiday is only for Berlin and Mecklemburg-Vorpommern, but regions are returning "ALL"

{ "name": "WELTFRAUENTAG", "date": "2024-03-07T23:00:00.000Z", "dateString": "2024-03-08", "regions": [ "BW", "BY", "BE", "BB", "HB", "HE", "HH", "MV", "NI", "NW", "RP", "SL", "SN", "ST", "SH", "TH", "BUND", "ALL" ] }

I guess there happened to be a mistake in line 403 and 407 within your feiertage.ts file: feiertageObjects.push(newHoliday('WELTFRAUENTAG', makeDate(year, 3, 8), ['ALL']));

There could be also more holidays affected. F.e. "WELTKINDERTAG".

For "REFORMATIONSTAG" the validRegions List includes NI twice:

const validRegions: Region[] = [ 'NI', 'BB', 'MV', 'SN', 'ST', 'TH', 'HB', 'HH', 'NI', 'SH', ];

sfakir added a commit that referenced this issue Jun 14, 2024
@sfakir
Copy link
Owner

sfakir commented Jun 14, 2024

Hi @s-schmoll,
thank you for the detailed review!
Definitley a mistake, I fixed it for the various holdiays and published a new version (1.4.1).

Best,

Simon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants