X Tutup
Skip to content

Fix Date value conversion#137

Merged
hzalaz merged 2 commits intomasterfrom
date-conversion-fix
Feb 24, 2017
Merged

Fix Date value conversion#137
hzalaz merged 2 commits intomasterfrom
date-conversion-fix

Conversation

@lbalmaceda
Copy link
Copy Markdown
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));
Copy link
Copy Markdown

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

X Tutup