Skip to content

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

Open
sotm-ross wants to merge 1 commit into
bokmann:developfrom
sockclub:account-for-midnight-end
Open

Account for config.end_of_workday=00:00:00#231
sotm-ross wants to merge 1 commit into
bokmann:developfrom
sockclub:account-for-midnight-end

Conversation

@sotm-ross

Copy link
Copy Markdown

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