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

Account for config.end_of_workday=00:00:00 #231

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

sotm-ross
Copy link

Why?

Was working on a project using UTC times and was testing around Daylight Savings Time when I realized that Config.end_of_workday had something to handle midnight closing times, but only if the hours are configured through work_hours= and not end_of_workday=

What?

Move the "is closing time midnight? Return 1 second before that instead" check outside of the branch handling when the day argument is present.

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.

1 participant