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

When selecting a start datetime, the end datetime should be after the start datetime. #6143

Open
4 tasks
Tracked by #5629
stevepiercy opened this issue Jul 1, 2024 · 2 comments
Open
4 tasks
Tracked by #5629

Comments

@stevepiercy
Copy link
Collaborator

stevepiercy commented Jul 1, 2024

  • When a user enters a start datetime in the widget for an event content type, its end datetime should update to be after the start datetime. In other words, the event duration must be a positive number.
  • If the user enters an end datetime equal to or before the start datetime, then validation on both the frontend and backend will prevent saving the event and return a helpful error message: "End datetime must be after start datetime".
  • For all-day events, the start time shall be 00:00:00 and end time 23:59:59 in the events timezone.
  • For recurring events, an end datetime is optional.

Pulled from #5551.

@davisagli
Copy link
Member

@stevepiercy Is this about validation, or about how the widgets operate, or something else?

@stevepiercy
Copy link
Collaborator Author

@davisagli, all the above. I updated the description to be explicit. @tisto as original proposer, and both @plone/volto-team and @plone/volto-accessibility, should review the revised issue description, as this is a pretty major change and improvement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants