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

Bugfix adding business time on a non-workday, after work hours #178

Conversation

lukeasrodgers
Copy link

If we want, e.g., 3 business days after Saturday at 7pm, that should be Thursday at 9am, not Friday at 9 am.

This change preserves existing behaviour whereby, if we want 3 business days after Saturday at 11am, we will get Thursday at 11am. This seems slightly counter-intuitive, but preserves backwards compatibility.

Fixes #149

Happy to add more tests if desirable.

If we want, e.g., 3 business days after Saturday at 7pm, that should be
Thursday at 9am, not Friday at 9 am.

This change preserves existing behaviour whereby, if we want 3 business
days after Saturday at 11am, we will get Thursday at 11am. This seems
counter-intuitive, but preserves backwards compatibility.
@lukeasrodgers
Copy link
Author

@bokmann any thoughts on this PR? Looks like #179 is basically the same fix too.

@bokmann
Copy link
Owner

bokmann commented May 18, 2018

Thanks for the work. I'm merging #179 because it also take into account the before behavior.

@bokmann bokmann closed this May 18, 2018
@lukeasrodgers
Copy link
Author

👍 thank you

@lukeasrodgers lukeasrodgers deleted the fix-non-workday-time-handling branch May 18, 2018 18:19
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