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

fix validating of date only values (fixes calendar end display) #16200

Merged
merged 2 commits into from
Oct 28, 2022

Conversation

eikaramba
Copy link
Contributor

@eikaramba eikaramba commented Oct 27, 2022

Description

Fixes #15844

Type of Change

  • Bugfix
  • Improvement
  • New Feature
  • Refactor / codestyle updates
  • Other, please describe:

Requirements Checklist

  • New / updated tests are included
  • All tests are passing locally
  • Performed a self-review of the submitted code

If adding a new feature:

  • Documentation was added/updated. PR:

@eikaramba
Copy link
Contributor Author

i also tested all possible scenarios in the UI with different field values. looks good now.

Copy link
Contributor

@azrikahar azrikahar left a comment

Choose a reason for hiding this comment

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

LGTM! I've wrongly interpreted parse() being the culprit in #12957, when it is actually the format() afterwards (even the console error showed it as format())! So the current ordering in your PR by parsing then checking isValid is definitely the way to go. 👍

Checked null end date values, as well as the following example:

Before After

@azrikahar azrikahar added this to the Next Release milestone Oct 28, 2022
@azrikahar azrikahar self-assigned this Oct 28, 2022
@azrikahar azrikahar merged commit 2738322 into directus:main Oct 28, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Calendar view EndDate always -1 before actual EndDate
2 participants