You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Select start and end date (29/01/2023 and 09/02/2023)
change the end date manually to 08/02/2023, onblur the input box
the end date input value become 02/08/2023
the start date input value become aN/aN/0NaN
Suggested Severity
Severity 1 = Must be fixed ASAP. The response must be swift. Someone from the team must drop all current work and be immediately reassigned to address the issue.
I cannot reproduce this on v1.25. But that might be because specifying a different date format, such as d/m/Y appears to be broken. I updated flatpickr to 4.6.13, but that didn't resolve it.
Maybe it is due to testing with the playground locally?
Set the playground with the following:
allowInput: true
datePickerType: range
dateFormat: d/m/Y
placeholder: dd/mm/yyyy
Input 05/02/23, tab to the 2nd input, and input 15/02/23
After tabbing/pressing enter the first input in the range changes to 02/15/23 and the 2nd is empty.
The dates are displayed in m/d/Y. If I try to do the same thing outside of the Playground in Storybook, I see that it sets the 2nd date to 01/05/2001 and the first date is empty.
So clearly there are some issues going on here. I'm running out of time to debug them.
I never specifically set the locale, so maybe that's related?
Package
@carbon/react
Browser
Chrome
Package version
v1.22.0
React version
v17.0.2
Description
when set DatePicker's dateFormat="d/m/Y", the date format will wrong after change end date manually
Reproduction/example
https://stackblitz.com/edit/github-bcvgpb?file=src/App.jsx
Steps to reproduce
08/02/2023
, onblur the input box02/08/2023
aN/aN/0NaN
Suggested Severity
Severity 1 = Must be fixed ASAP. The response must be swift. Someone from the team must drop all current work and be immediately reassigned to address the issue.
Application/PAL
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: