Unplanned
Last Updated: 18 Apr 2022 10:43 by Venkat
Venkat
Created on: 18 Apr 2022 10:43
Category: DateTimePicker
Type: Bug Report
0
DateRangePicker doesn't display correct time value on dynamic value change

Describe the bug
The DateRangePicker doesn't display a correct time when the format prop is defined and the value of the component is set dynamically.

The bug is reproducing when the minutes in the copied value are a number bigger than 51.

To Reproduce

  1. Open this project
  2. Open the DateTimePicker popup and select random date + Time 01: 58
  3. Focus on the DateTimePicker and press Ctrl + A
  4. Copy the value of the first DateTimePicker
  5. Focus on the second DateTimePicker and paste the copied value

Expected behavior
The value of the second DateTimePicker should be the same as the value of the first one.

Current behavior:
The minutes value in the second DateTimePicker is incorrect - it is 1:08 instead of 1:58

Screenshots
image

0 comments