Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev branch - Pickadate increases selected date by one day #578

Closed
antonio-bakula opened this issue Nov 20, 2014 · 2 comments
Closed

Dev branch - Pickadate increases selected date by one day #578

antonio-bakula opened this issue Nov 20, 2014 · 2 comments

Comments

@antonio-bakula
Copy link

When date is picked in popup value in edit box is greater by one day. I am in UTC +1 time zone (CET) and I am pretty sure that his UTC calculations are the problem, so I changed:

targetDate.obj.getUTCDate(),
to
targetDate.obj.getDate(),

on line 1210 in picker.date.js to make it work, but not sure is that a right thing to do, it works now for CET. Please comment

@demrks
Copy link

demrks commented Dec 2, 2014

Same here. Disabled dates don't work either. Everything is offset by one day.
targetDate.obj.getDate() seems to fix it though.

EDIT: Your fix doesn't seem to fix everything. If I open the picker again after selecting a date, the wrong date (+1 day) is selected.

@amsul
Copy link
Owner

amsul commented Dec 7, 2014

Yup, discussion about it here: #556

It should be resolved on the master branch.

Cheers!

@amsul amsul closed this as completed Dec 7, 2014
@amsul amsul added the duplicate label Dec 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants