Skip to content

[4.4] Fix bugs in neo4j.time.DateTime handling #1101

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

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

robsdedude
Copy link
Member

  • Fix DateTime +/- Duration computation being wildly off by considering the days of the DateTime since UNIX epoch twice.
  • Fix DateTime.__ne__ (inequality operator) incorrectly comparing against non-DateTime-like types.

Backport of

 * Fix `DateTime` +/- `Duration` computation being wildly off by considering
   the days of the `DateTime` since UNIX epoch twice.
 * Fix `DateTime.__ne__` (inequality operator) incorrectly comparing against
   non-DateTime-like types.
Copy link
Contributor

@MaxAake MaxAake left a comment

Choose a reason for hiding this comment

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

LGTM

@robsdedude robsdedude merged commit 3d81299 into neo4j:4.4 Oct 4, 2024
12 checks passed
@robsdedude robsdedude deleted the fix-datetime-handling-4.4 branch October 4, 2024 10:58
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