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

$.timepicker.datetimeRange example does not work properly #756

Open cmfcmf opened 9 years ago

cmfcmf commented 9 years ago

The datetimerange example on the website does not work properly: http://trentrichardson.com/examples/timepicker/#range_examples

Timepicker also includes some shortcut methods for ranges:

var startDateTextBox = $('#range_example_2_start');
var endDateTextBox = $('#range_example_2_end');
$.timepicker.datetimeRange(
    startDateTextBox,
    endDateTextBox,
    {
        minInterval: (1000*60*60), // 1hr
        dateFormat: 'dd M yy', 
        timeFormat: 'HH:mm',
        start: {}, // start picker options
        end: {} // end picker options                   
    }
);

After changing the date in the right datetimepicker via the "now" button, the left datetimepicker still restricts the date as it did before. record