trentrichardson / jQuery-Timepicker-Addon

Adds a timepicker to jQueryUI Datepicker
http://trentrichardson.com/examples/timepicker/
MIT License
2.66k stars 1.05k forks source link

How disable show seconds, milliseconds? #927

Open drno-reg opened 6 years ago

drno-reg commented 6 years ago

Hello,

yesterday I decided to try jQuery-Timepicker-Addon.

connected to project was good

С По
after I tried to disable show Second and others $('#datetime_from').datetimepicker( // $.timepicker.regional['ru'], { // minDate: getFormattedDate(new Date()), showSecond:false, showMillisec:false, showMicrosec:false, showTimezone:false, stepHour: 2, stepMinute: 10, stepSecond: 10, showTimePicker: false } ); But option showSecond:false and others not did not work... How to solve this problem?
mattfox commented 6 years ago

I ran into this too. Solved by downgrading to 1.4.6 https://github.com/trentrichardson/jQuery-Timepicker-Addon/releases/tag/v1.4.6 (1.5.5 has the issue, as well as 1.6).

kreno commented 6 years ago

I also ran into this, and downgrading to 1.4.6 worked for me as well.

kreno commented 6 years ago

I found what I was doing wrong, I needed to have jquery-ui-timepicker-addon.css imported into my html. With the css, this works great in 1.6. Mea culpa

EspressoBeans commented 6 years ago

This Q/A helped me, I was having the same issue and realized that the CSS was not importing. When CSS imported, it fixed this issue for me.

nengxu commented 6 years ago

With V1.6.1, even with the jquery-ui-timepicker-addon.css, showSecond:false still not working.