jquery-timepicker
jquery-timepicker copied to clipboard
Timepicker duration is incorrect when using 11:00 PM
I am using two timepickers that relate to each other (i.e.: Start time and End time). Based on the start time, I am updating the end time dropdown with a new duration. For example, when 1AM is selected, 2AM in the end time dropdown is expected to have a 1 hour duration text.
When selecting 11PM from the start time, the duration for 12AM states 23 hours, rather than 1 hour. Then the duration decreases for sequential hours (1AM states 22 hours, 2AM states 21 hours).
I have the issue replicated in the following jfiddle: http://jsfiddle.net/tsorber/3h5b7v04/11/