excitement-engineer / graphql-iso-date

A set of RFC 3339 compliant date/time GraphQL scalar types.
MIT License
523 stars 50 forks source link

DateTime does not recognize Iso DateTime string #148

Open TheZwieback opened 1 year ago

TheZwieback commented 1 year ago

I have datetime strings that are not recognized as a valid value, it throws following error:

found "2021-10-31T05:55:00+0000"; DateTime cannot represent an invalid date-time-string 2021-10-31T05:55:00+0000

If I add a colon it works: "2021-10-31T05:55:00+00:00"; Is it possible to add support for the non-colon datetime string as it is also a valid iso string?