Bootstrap Plugin TimePicker: set the full hour / minute / second

I am working with the bootstrap Timepicker Plugin and need to set the full time ( H:i:s).

when initializing timepicker Only work with this format 11:42 PM/AM:

$('someSelector').timepicker('setTime': '11:42 PM');

But my time: 12:12:12And it does not work with timepicker.

How to fix it?!

Found:

Usage: defaultValue: '12:45:30'and showSeconds: trueIt works great.

 $('#timepicker2').timepicker({disableFocus: true,showInputs: false,showSeconds: true,showMeridian: false,defaultValue: '12:45:30'});
+4
source share
1 answer

Found:

Usage: defaultValue: '12:45:30'and showSeconds: trueIt works great.

 $('#timepicker2').timepicker(
    {
     disableFocus: true,
     showInputs: false,
     showSeconds: true,
     showMeridian: false,
     defaultValue: '12:45:30'
     }
 );
+2
source

Source: https://habr.com/ru/post/1544296/


All Articles