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

TimeframeForm: Fix relative datetime handling #244

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sukhwinder33445
Copy link
Contributor

@sukhwinder33445 sukhwinder33445 commented Jul 23, 2024

fixes #240
fixes #241

End date must always be greater than the start date

- Add autosubmit to validate on every change
- `DateTime::createFromFormat()` returns false, if seconds are `00`, which leads to a false positive result at the end.
- Check the checkboxes only if start/end is actually relative
@sukhwinder33445 sukhwinder33445 added the bug Something isn't working label Jul 23, 2024
@sukhwinder33445 sukhwinder33445 self-assigned this Jul 23, 2024
@cla-bot cla-bot bot added the cla/signed label Jul 23, 2024
@sukhwinder33445 sukhwinder33445 changed the title Fix/timeframe form datetime handling TimeframeForm: Fix relative datetime handling Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cla/signed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Timeframe with fixed ate are not saved correctly Relative timeframe validation not working correctly
1 participant