tarides / get-activity

collect activity and format as markdown for a journal
MIT License
0 stars 1 forks source link

ISO 8601 dates not accepted #42

Open reynir opened 2 months ago

reynir commented 2 months ago

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.