Skip to content

Conversation

@lutovich
Copy link
Contributor

Added checks for all temporal types to assert that values used to create them are in expected numeric ranges. This should disallow negative months, days more than 31 and things like that.

Based on #390, only last commit is new.

lutovich added 4 commits June 20, 2018 11:31
This commit adds `#fromStandardDate()` functions to all temporal types
except `Duration`. Such functions allow to create temporal objects
from the provided standard JavaScript `Date`.
Standard dates have zero-based month. Neo4j temporal types have
1-based month. Conversion from standard date with zero month was not
handled correctly and resulted in zero month in neo4j temporal types.
Added checks for all temporal types to assert that values used to
create them are in expected numeric ranges. This should disallow
negative months, days more than 31 and things like that.
Copy link
Contributor

@ali-ince ali-ince left a comment

Choose a reason for hiding this comment

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

👍

@lutovich lutovich merged commit 3e54d8c into neo4j:1.6 Jun 28, 2018
@lutovich lutovich deleted the 1.6-check-temporal-ranges branch June 28, 2018 14:50
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.

2 participants