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

feat: add support for setting '24h' as end work hour #119

Merged
merged 1 commit into from
Nov 4, 2023

Conversation

FlorianLoch
Copy link
Contributor

I think it should be possible to configure "till end of day" using 24h using SetWorkHours() in combination with IsWorkTime().

Until now using 24h failed (silently) because by applying module it drops to 0 and therefore IsWorkTIme always returns false. Code using it that way basically is broken.

Therefore, this also should not affect backwards compatibility.

WDYT?

@rickar
Copy link
Owner

rickar commented Oct 21, 2023

Makes sense to me. Once you fix the test I'll merge it.

@FlorianLoch
Copy link
Contributor Author

Ouch, that was a remnant of my first approach that must have slipped through... Anyway, should be fixed now :)

@FlorianLoch
Copy link
Contributor Author

Failing tests should be resolved, you might want to give the test job another run 😉

@rickar rickar merged commit d7b1f1d into rickar:master Nov 4, 2023
2 checks passed
@rickar
Copy link
Owner

rickar commented Nov 4, 2023

Thanks!

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