cleave.js icon indicating copy to clipboard operation
cleave.js copied to clipboard

TimeFormatter allows incorrect minimum value in 12-hour time format

Open michaeldowseza opened this issue 5 years ago • 0 comments

Problem: When using the time formatter in 12-hour time format, it incorrectly allows a minimum value of "00:" for hours. The minimum should be restricted to "01" when in 12-hour time format and "00" in 24-hour time format.

To reproduce the error or describe your requirement with a jsfiddle url would be appreciated: https://jsfiddle.net/dmba358p/

  • Typing "00" into the follow jsfiddle shows the current behaviour.

michaeldowseza avatar Oct 05 '20 16:10 michaeldowseza