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

Date parsing fails #1770

Open
wzrdtales opened this issue Nov 13, 2022 · 2 comments
Open

Date parsing fails #1770

wzrdtales opened this issue Nov 13, 2022 · 2 comments

Comments

@wzrdtales
Copy link

Date cannot represent an invalid date-string 1993-02-12T00:00:00.000Z.

This error gets thrown if a date comes back from a database. This is weird and probably a bug since the scalar itself delivers a javascript date object which is represented exactly this way and it stops complaining if it gets passed in new Date() first.

@wzrdtales
Copy link
Author

so it is enough to serialize the date object produced by this scalar and pass it back to a resolver with the same scalar to cause this issue. I don't think this is a wanted behavior.

@falkenhawk
Copy link

#1641

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants