Skip to content

Stop DateTime auto converting to UTC #1848

Closed
@dr3

Description

@dr3

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions