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

When I click in the datetime field, the time 01:01 pm appears and Now is greyed out #774

Open cgerendasy opened 9 years ago

cgerendasy commented 9 years ago

Nevertheless, when I click "Now", the correct time goes in the field. How can I have it show the correct time the first time? How can I make the "Now" button look like it works?

Here's how I call it: $(document).ready(function() {

$( "input[name='dateIn']" ).datetimepicker({                 
     changeMonth: true,
     changeYear: true,
     timeFormat: 'hh:mm tt',
     hour: true,
     minute: true,    
     onSelect: function(){
        $(this).datepicker("hide"); $(this).blur();
     }
}); 

$( "input[name='dateIn']" ).timepicker({
changeMonth: true, changeYear: true, pickSeconds: true });

Ataye commented 9 years ago

I'm getting the same except time is 12:00 am regardless. Using version 1.4.5 from cdn.