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

Fix Date value conversion #137

Merged
merged 2 commits into from
Feb 24, 2017
Merged

Fix Date value conversion #137

merged 2 commits into from
Feb 24, 2017

Conversation

lbalmaceda
Copy link
Contributor

Bug fix for the Date value parsing.
Related #132

Date date = deserializer.getDateFromSeconds(tree, "key");
assertThat(date, is(notNullValue()));
assertThat(date.getTime(), is(seconds * 1000));
assertThat(date.getTime(), is(2147493647L * 1000));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Integer is always 32 bits on java?
it's weird how java makes you explicitly cast to (Object) sometimes, but when you sum a long to an int it doesn't care.

@hzalaz hzalaz merged commit aee04b3 into master Feb 24, 2017
@hzalaz hzalaz deleted the date-conversion-fix branch February 24, 2017 14:24
@hzalaz hzalaz added this to the v3-Next milestone Feb 24, 2017
@lbalmaceda lbalmaceda modified the milestones: v3-Next, 3.2.0 May 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants