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 to Ukrainian holidays in UkraineHolidayProvider.cs #676

Merged
merged 3 commits into from
Sep 17, 2024

Conversation

Greenky
Copy link
Contributor

@Greenky Greenky commented Sep 16, 2024

Changes to Ukraine Holidays
Victory Day over Nazism in World War II changed to 03.08 starting from 2024 Deleted Julian Christmas starting from 2024
Changed Defender of Ukraine Day dates to be accurate from 2015 to 2023 and from 2023 onward. All new dates are inline with original source https://en.wikipedia.org/wiki/Public_holidays_in_Ukraine

Changes to Ukraine Holidays
Victory Day over Nazism in World War II changed to 03.08 starting from 2024
Deleted Julian Christmas starting from 2024
Changed Defender of Ukraine Day dates to be accurate from 2015 to 2023 and from 2023 onward.
All new dates are inline with original source https://en.wikipedia.org/wiki/Public_holidays_in_Ukraine
@tinohager
Copy link
Member

if i have researched it correctly, december 25 would only be introduced in ukraine from 2017, perhaps we could also map it right away

@Greenky
Copy link
Contributor Author

Greenky commented Sep 16, 2024

Yes, you are right, I will add this change also.

Added that Gregorian Christmas celebration in Ukraine stared officially from 2017.
@Greenky
Copy link
Contributor Author

Greenky commented Sep 17, 2024

@tinohager added all the changes, waiting for approval.

@@ -58,7 +51,7 @@ protected override IEnumerable<HolidaySpecification> GetHolidaySpecifications(in
},
new HolidaySpecification
{
Date = new DateTime(year, 5, 9),
Date = new DateTime(year, 5, year < 2024 ? 9 : 8),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please also outsource the logic to a separate method we want to keep the code clean

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Greenky and this change?

@tinohager tinohager merged commit 18be28f into nager:main Sep 17, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants