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

Same-day rules #99

Merged
merged 1 commit into from
Jan 30, 2024
Merged

Same-day rules #99

merged 1 commit into from
Jan 30, 2024

Conversation

GAsplund
Copy link
Member

@GAsplund GAsplund commented Jan 5, 2024

There have been instances where rules have had to be created that would only last for one day. Attempting to do this would return "Invalid date", as it occurs on the same date.
This PR is a simple patch that changes validDate to allow start to be less than or equal to end, and moves the previous functionality into validDateTime (where start can only be less than end).

Copy link
Member

@Oscariremma Oscariremma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@hulthe hulthe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:trollface:

@GAsplund GAsplund merged commit 71ad30f into main Jan 30, 2024
4 checks passed
@GAsplund GAsplund deleted the fix/same-day-rules branch January 30, 2024 19:54
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.

3 participants