xdan / datetimepicker

jQuery Plugin Date and Time Picker
https://xdsoft.net/jqplugins/datetimepicker/
MIT License
3.5k stars 1.51k forks source link

seconds defaulting to current time #246

Closed mfrere closed 9 years ago

mfrere commented 9 years ago

I'm using this time format $('.timeinput').datetimepicker({format:'Y-m-d H:i:s'});

When I pick a time, the seconds default to the current time's seconds. Is this intended? Can I make it default to 00 instead?

I tried to use allowTimes with time strings such as "14:30:00" without success. Maybe there's already a solution implemented for this use case but I couldn't find any clues in the doc.

xdan commented 9 years ago

$('.timeinput').datetimepicker({format:'Y-m-d H:i:00'});

mfrere commented 9 years ago

thank you