jonthornton / Datepair.js

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

Date changing, when it shouldn't #9

Closed Mythique closed 10 years ago

Mythique commented 10 years ago

Hey,

Thanks for your awesome script, but i'm having a little problem with it. Here is a fiddle so you can understand the problem more easily : http://jsfiddle.net/28uvg/25/

When I try to change the field "Heure de retour" to something like "11:00" instead of "9:00", the date also changes (going from "14-6-2014" to "13-6-2014").

I have no idea why it is doing this, hopefully you could give me some hints.

Mythique commented 10 years ago

I have downloaded the last update, and unfortunately there is still the same issue.

jonthornton commented 10 years ago

I had forgotten to update the file at http://jonthornton.github.io/jquery-datepair/lib/bootstrap-datepicker.js. The fiddle you posted works correctly now.

Let me know if you're still seeing errors.