Timepicker max time 12pm should be noon and not midnight.


Topic: Timepicker max time 12pm should be noon and not midnight.

robertsi77 asked 2 years ago

I used the data-mdb-min-time="09:00 AM" data-mdb-max-time="11:00 PM"

then tried to select noon 12 PM but it does not let me until I put max time to 12 PM.Seems like the picker thinks 12 pm it's midnight instead of noon.

Then I tried to change the values to 24hrs 09:00 min and max 23:00 but only lets me select from 09:00 to 12:00.

What is the correct way to do it?

I attached snipped with both cases.

https://mdbootstrap.com/snippets/standard/robertsi77/4298818


kpienkowska staff answered 2 years ago

Sorry but your snippet is not working. Are you sure you clicked Publish?


robertsi77 commented 2 years ago

I am sorry, I thought I clicked Publish, but apparently I did not. I updated the post, but here it is too:

https://mdbootstrap.com/snippets/standard/robertsi77/4298818


kpienkowska staff answered 2 years ago

I'm sorry to inform you that there is bug in the logic of 12h format. We will fix this as soon as possible.

However if you add data-mdb-format24="true" your second example will work well. Also if you want you can add data-mdb-inline="true" to use inline version.


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: MDB5 4.4.0
  • Device: Computer
  • Browser: Chrome
  • OS: MacOS
  • Provided sample code: No
  • Provided link: Yes