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

Use date arithmetic to allow dates with times other than 00:00:00 #1483

Merged
merged 2 commits into from
May 9, 2016

Conversation

colavitam
Copy link
Contributor

Instead of directly comparing date values using valueOf, dates are now compared with arithmetic to check if they fall under the same date. This fixes resolves #1221, allowing for times other than 00:00:00 when setting the date.

Instead of directly comparing date values using valueOf, dates are now
compared by making sure the dates and times fall under the same date.
This fixes bugs for times other than 00:00:00 when setting the date.
Added a test to ensure that dates with times other than 00:00:00 are
selected and stored properly.
@acrobat
Copy link
Member

acrobat commented May 6, 2016

@Azaret What do you think? Fix looks good enough to me as a temp fix until we support time picking!

@Azaret
Copy link
Contributor

Azaret commented May 7, 2016

Looks good to me!

@acrobat acrobat added this to the 1.7.0 milestone May 8, 2016
@acrobat
Copy link
Member

acrobat commented May 9, 2016

Thanks @colavitam

@acrobat acrobat merged commit 480905b into uxsolutions:master May 9, 2016
@acrobat acrobat mentioned this pull request May 1, 2017
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

Successfully merging this pull request may close these issues.

setDate does not work unless time is 00:00:00
4 participants