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

Start time set to end time when passing midnight #56

Closed low closed 8 years ago

low commented 8 years ago

Thanks for this script, Jon. It looks like I can scrap a lot of custom stuff from my version and adopt this. :)

So, to reproduce this minor issue (can also be seen on the current demo page):

The end date is now one day after the start date, which is what I expected. However, the start time is now also 2:00am, when should remain at 10:00pm.

jonthornton commented 8 years ago

Thanks for the bug report!