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

Boxing Day is not being shifted when it falls on a Saturday #95

Merged
merged 1 commit into from Oct 6, 2014
Merged

Boxing Day is not being shifted when it falls on a Saturday #95

merged 1 commit into from Oct 6, 2014

Conversation

declantraynor
Copy link

In the UK and Northern Ireland, holiday days are observed in lieu of Christmas Day and Boxing Day if either of those days falls on a weekend. The current logic for shifting these dates (in workalendar.europe) is only triggered when Christmas Day falls on a weekend and so does not account for the scenario where Christmas Day falls on a Friday, meaning that Boxing Day is on a Saturday and should be shifted to the following Monday.

Please review my changes in workalendar.europe, where I've added an additional clause to account for this particular scenario. I've also added a unit test in test_europe.UnitedKingdom.

Hope this is correct.

P.S. thanks for the great library!

  • D

…ay falls on a week day but Boxing day falls on the weekend
@brunobord
Copy link
Member

looks great! thanks for the bugfix!

brunobord added a commit that referenced this pull request Oct 6, 2014
Boxing Day is not being shifted when it falls on a Saturday
@brunobord brunobord merged commit 5184a13 into workalendar:master Oct 6, 2014
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.

None yet

2 participants