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

ISO 8601 dates not accepted #42

Open
reynir opened this issue Aug 12, 2024 · 0 comments
Open

ISO 8601 dates not accepted #42

reynir opened this issue Aug 12, 2024 · 0 comments

Comments

@reynir
Copy link

reynir commented Aug 12, 2024

FWIW the options --to and --from are according to the man page accepting ISO 8601 dates, but in reality only a subset are:

$ get-activity --from 2024-07-01 --to 2024-08-01 
Variable $from of type DateTime! was provided invalid value
Variable $to of type DateTime! was provided invalid value

Digging further I find that it is the GitHub API documentation that is wrong: https://docs.github.com/en/graphql/reference/scalars#datetime

None the less it may be helpful to say it's an RFC 3339 date as GitHub doesn't seem to support all the "fun" variants of ISO 8601, e.g. 2024-W29-1T00:00:00Z is also not accepted.

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

1 participant