Topic: React Time Picker cannot set default value with 12 hour clock
When trying to set the default value for the Time Picker, I am unable to find a way to select a default value with the 12 hour clock in the PM range. The code:
<MDBTimePicker id="timePicker" label="Event Time" hours={14} minutes={35} getValue={this.updateEventTime} />
gives me the output of
14:35AM
In the time picker itself. Obviously it is wrong, it should either be 2:35PM, or 14:35, but there is no 14:35AM.
How can I set a default value in the PM range?
Anna Morawska staff answered 6 years ago
Hi there,
thank you for reporting this - it's a bug. We will try to fix this in one of the upcoming releases.
Best, Ania
salphonso answered 6 years ago
Any eta on this fix? This is a pretty significant issue for the timepicker as it makes all the PM times 12 hours off or invalid when setting the default value.
Also, if it is not yet fixed is there a workaround we can use?
Anna Morawska staff answered 6 years ago
Hi there,
unfortunately, it is not fixed yet - sorry for the inconvenience - we will give priority to this task and try to deliver the working version as soon as possible.
Best, Ania
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Free
- Premium support: No
- Technology: MDB React
- MDB Version: 4.7.0
- Device: PC
- Browser: Chrome
- OS: Windows/Linux
- Provided sample code: No
- Provided link: No