mugifly / jquery-simple-datetimepicker

Date & time picker for jQuery, It's simple & clean.
http://mugifly.github.com/jquery-simple-datetimepicker
Other
260 stars 182 forks source link

Error when combining future only + date format #136

Open pedroaragon360 opened 10 years ago

pedroaragon360 commented 10 years ago

Hello, I have tried version 1.12 and 1.13, and in both happens the same thing (using chrome, havent tried others).

$('#elegir_cal').appendDtpicker({ "dateFormat": "DD/MM/YY", "futureOnly": true });

When I want to go to next month, it does NOT work, at first I click next, it doesnt load the next month, stays in the actual, then I press it again, and it goes to the next month. Then, if I press next month again, it just comes backwards (so back to september).

pedroaragon360 commented 10 years ago

By the way, if I remove the dateFormat, everything works fine. I am using this as it works, although I would like to configure dateFormat as my upper post.

"autodateOnStart": false, "closeOnSelected": true, "futureOnly": true, "dateOnly": true
pedroaragon360 commented 10 years ago

I have just added spanish language and it had fixed the issue.... weird

"locale": "es",

umairorana commented 10 years ago

you can try with "dateFormat": "DD/MM/YY hh:mm", This can also resolve it..