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

Stop DateTime auto converting to UTC #1848

Closed
4 tasks
dr3 opened this issue Mar 17, 2023 · 2 comments
Closed
4 tasks

Stop DateTime auto converting to UTC #1848

dr3 opened this issue Mar 17, 2023 · 2 comments

Comments

@dr3
Copy link

dr3 commented Mar 17, 2023

Issue workflow progress

Progress of the issue based on the Contributor Workflow

  • 1. The issue provides a reproduction available on GitHub, Stackblitz or CodeSandbox

Make sure to fork this template and run yarn generate in the terminal.

Please make sure the GraphQL Scalars package version under package.json matches yours.

  • 2. A failing test has been provided
  • 3. A local solution has been provided
  • 4. A pull request is pending review

Describe the bug
DateTime scalar auto converts to UTC by design

See test that confirms this was intentional

To Reproduce
Steps to reproduce the behavior:
Use DateTime in a query

Expected behavior
The RFC 3339 spec doesn't mention anything about shifting to UTC, so it should keep all timezone adjustments

@ardatan
Copy link
Collaborator

ardatan commented May 18, 2023

Now LocalDateTime scalar is available!

@ardatan ardatan closed this as completed May 18, 2023
@grahamb
Copy link

grahamb commented Jul 7, 2023

LocalDateTime isn't listed in the documentation as an available scalar.

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

No branches or pull requests

3 participants