Skip to content

Error setDate when minDate the same day #352

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

Open
Prividen opened this issue Mar 31, 2012 · 0 comments
Open

Error setDate when minDate the same day #352

Prividen opened this issue Mar 31, 2012 · 0 comments

Comments

@Prividen
Copy link

When i set minDate the same day, as setDate, and when seconds, or minutes of minDate is greater than the minutes or seconds of setDate, then resulting datetime is broken.

minDate: new Date(2012, 1, 12, 8, 58, 2),
maxDate: new Date(2012, 1, 13, 23, 59, 59)
$("#somepicker").datetimepicker('setDate', new Date(2012, 1, 12, 20, 57, 6));

expected result: 12 Feb 2012, 20:57:06
really: 12 Feb 2012, 08:58:02

BUT
minDate: new Date(2012, 1, 12, 8, 55, 2),
$("#somepicker").datetimepicker('setDate', new Date(2012, 1, 12, 20, 57, 6));

expected AND really result: 12 Feb 2012, 20:57:06

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant