[DateTimePicker] Setting date range throws error when dateTimeMask does not include time part #3741
Open
1 of 2 tasks
Labels
impact: high 😱
Affects all users
offering: health
package: react
regression
severity: 2
Affects major functionality, has a workaround
type: bug 🐛
What package is this for?
Describe the bug
If the
dateTimeMask
doesn't include the time part e.g. "MM/DD/YYYY", changing the range in DateTimePicker causes exception. Here's the stack traceTo Reproduce
Steps to reproduce the behavior:
dateTimeMask
to "MM/DD/YYYY" in DateTimePicker.Expected behavior
User should be able to set the
dateTimeMask
in DateTimePicker to just date format.Environment/versions:
carbon-addons-iot-react
version: v2.152.4Additional context
This caused by changes in this commit -> cc20d6e#diff-b384b4bbb432ea7d7ff4e0a55b7c379c4261fcfaba975ad469c489f7530970f1
Specific timeline issues / requests
Do you want this work within a specific time period? Is it related to an
upcoming release?
The fix is required for MAS 8.10. Health defect -> https://github.ibm.com/maximo/Asset-Health-Insight/issues/13887
NB: The core contributors will try to work with your timeline, but it's not
guaranteed. The earlier you make a request in advance of a desired delivery
date, the better!
The text was updated successfully, but these errors were encountered: