trentrichardson/jQuery-Timepicker-Addon — Issue #270: Addon Breaks existing date picker.
Author: daishi446
Created: 2011-11-04 01:32:21+00:00
State: open

I get this error:
Uncaught TypeError: Cannot call method 'getTime' of nulljquery-ui.min.js:331
a.extend._generateHTMLjquery-ui.min.js:331
a.extend._updateDatepickerjquery-ui.min.js:299
$.datepicker._updateDatepickerjquery-ui-timepicker-addon.js:976
a.extend._showDatepickerjquery-ui.min.js:297
f.event.handlejquery.min.js:3
f.event.add.i.handle.kjquery.min.js:2

The code for the existing date picker that is being broken is identical to the one on the jquery example page for date ranges.
http://jqueryui.com/demos/datepicker/#date-range
```javascript
$(function() {
var dates = $( "#from, #to" ).datepicker({
defaultDate: "+1w",
changeMonth: true,
numberOfMonths: 3,
onSelect: function( selectedDate ) {
var option = this.id == "from" ? "minDate" : "maxDate",
instance = $( this ).data( "datepicker" ),
date = $.datepicker.parseDate(
instance.settings.dateFormat ||
$.datepicker._defaults.dateFormat,
selectedDate, instance.settings );
dates.not( this ).datepicker( "option", option, date );
}
});
});
```