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 for inconsistent timezone handling #5931

Open
wants to merge 2 commits into
base: 7.x
Choose a base branch
from

Conversation

darrellwarde
Copy link
Contributor

@darrellwarde darrellwarde commented Jan 6, 2025

Description

This is a potential fix for #3785. This is a hard issue to recreate, but I believe is caused by how we create datetime and time values using the Neo4j driver in the GraphQL server before sending the Cypher to the database. If the server and the database are in different timezones, I believe this can result in unexpected results. This PR aligns the creation of these values with how the @timestamp directive is resolved, by using the datetime() function in Cypher. DateTime and Time values are now created using their respective functions in Cypher, from the string values directly passed in as Cypher parameters.

Complexity

Complexity: Medium

Issue

Closes #3785

Copy link

changeset-bot bot commented Jan 6, 2025

🦋 Changeset detected

Latest commit: d9e4e3d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@neo4j/graphql Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@darrellwarde darrellwarde linked an issue Jan 6, 2025 that may be closed by this pull request
@darrellwarde darrellwarde changed the title Fix/timezone-shift Fix for inconsistent timezone handling Jan 6, 2025
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.

Inconsistent timezone handling
1 participant