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

Date entered without any separators is changed when auto-formatted to include separators #976

Open
jrrdnx opened this issue Jan 22, 2024 · 1 comment
Labels
issue Something isn't working correctly

Comments

@jrrdnx
Copy link
Contributor

jrrdnx commented Jan 22, 2024

Describe the bug or issue you're experiencing

When any Date Separator option except 'None' is used and the date is manually typed in without using the datepicker or any separators, the resulting date in changed to a different date when automatically formatted to include the separators.

Steps to reproduce

  1. In a Date & Time field (using Type of Date, haven't tested with Both), type in a valid date but without any separators
  2. When focus is lost and the date is auto-formatted to include separators, the date is changed to a different date

Examples of before and after with two different dates (01012024 changed to 1/12/2024 and 12312023 changed to 12/12/2023):

Screenshot 2024-01-22 at 09 40 41 Screenshot 2024-01-22 at 09 40 50 Screenshot 2024-01-22 at 09 43 17 Screenshot 2024-01-22 at 09 43 22

Expected behavior

Date should be formatted to include the separators without changing the date entered by the user

Craft & Plugin Info (please complete the following information):

  • Craft Version: Pro 4.6.1
  • Freeform Version: 4.1.13
  • Freeform Edition: Pro
  • Fresh Install or Upgrade: Fresh install
@jrrdnx jrrdnx added the issue Something isn't working correctly label Jan 22, 2024
@jrrdnx
Copy link
Contributor Author

jrrdnx commented Jan 23, 2024

Disabling the datepicker prevents the date from being changed incorrectly, but obviously doesn't format the date automatically so requires the user to make sure this is done manually. Using as a workaround for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue Something isn't working correctly
Development

No branches or pull requests

1 participant