@RichardLindhout Please give this a test before merging. It looks like there was an oversight let hours12AndPm = !hours24 && modeRef.current === 'AM' shouldn't be checking for PM if the modeRef.current === 'AM'. This was causing the reproducible bug provided in the issue.
@RichardLindhout Please give this a test before merging. It looks like there was an oversight
let hours12AndPm = !hours24 && modeRef.current === 'AM'
shouldn't be checking forPM
if themodeRef.current === 'AM'
. This was causing the reproducible bug provided in the issue.