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 DateTime with ZoneId for years between 00-99 #992 #991

Merged
merged 3 commits into from
Sep 9, 2022

Conversation

bigmontz
Copy link
Contributor

@bigmontz bigmontz commented Sep 7, 2022

The error was happening because Date.UTC factory doesn't treats dates between 00-99 as 1900-1999.

Removing the usage of this factory makes the code slighty faster while resolves the issue.

@bigmontz
Copy link
Contributor Author

bigmontz commented Sep 7, 2022

Cherry picks: #990 and #992

bigmontz and others added 2 commits September 8, 2022 13:34
New UTC zoned date time has timeZoneOffsetInSeconds values.

Co-authored-by: Florent Biville <[email protected]>
The error was happening because Date.UTC factory doesn't treats dates between 00-99 as 1900-1999.

Removing the usage of this factory makes the code slighty faster while resolves the issue.
@bigmontz bigmontz changed the title Fix temporal it tests (#990) Fix DateTime with ZoneId for years between 00-99 #992 Sep 8, 2022
@bigmontz bigmontz force-pushed the 4.4-fix-temporal-tests branch from ca7bca7 to 7d3f92e Compare September 8, 2022 15:18
@robsdedude robsdedude self-requested a review September 9, 2022 08:40
Copy link
Member

@robsdedude robsdedude left a comment

Choose a reason for hiding this comment

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

🎩

@bigmontz bigmontz merged commit 8a55f99 into neo4j:4.4 Sep 9, 2022
@bigmontz bigmontz deleted the 4.4-fix-temporal-tests branch September 9, 2022 13:37
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.

2 participants