jonthornton / Datepair.js

A javascript plugin for intelligently selecting date and time ranges, inspired by Google Calendar.
https://www.jonthornton.com/Datepair.js
358 stars 87 forks source link

Issue when end date is next day #57

Closed KrunchMuffin closed 8 years ago

KrunchMuffin commented 8 years ago

if I set start time to 10:00pm and set end time to 2:45am, start time gets set to end time.

http://jsfiddle.net/fv9m5my0/14/

narrowed it down to this line https://github.com/jonthornton/Datepair.js/blob/master/src/Datepair.js#L272