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

dateTimeRange is not considering selected timezone in start date. #749

Open kasulachetu opened 10 years ago

kasulachetu commented 10 years ago

I am trying to use the following example from the book, but end_date is not considering start_date's timezone.

var startDate = $("#start_date"),
      endDate = $("#end_date");
$.timepicker.datetimeRange(
        startDate,
        endDate, {
          minInterval: (1000*60*60),
          start: {}, // start picker options
          end: {} // end picker options
 } );
trentrichardson commented 10 years ago

Are you using the latest timepicker version from Github? The version in the book examples may be a step or two behind the library release.

kasulachetu commented 10 years ago

I am using version 1.4.6. Also, I noticed that if there is an endDate already, datetimeRange is ignoring it and replacing with minInterval time.

kasulachetu commented 10 years ago

Sorry, I fixed the issue with endDate already existing. It was timeformat mistmatch. But the timezone issue still remains.