Hi it seems the GraphSQL curl example page at https://developers.cloudflare.com/analytics/graphql-api/getting-started/execute-graphql-query has an incorrect format for the date's minute format. On CentOS 7.9 date v8.22 the %m is for month not minute and need to use %M for minutes
Your curl example uses incorrect minute format %m
start_date=$(date --date="@$start_epoch" +'%Y-%m-%dT%H:%m:%SZ')
end_date=$(date --date="@$end_epoch" +'%Y-%m-%dT%H:%m:%SZ')
date --version; date --help | egrep '%m|%M'
date (GNU coreutils) 8.22
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by David MacKenzie.
%D date; same as %m/%d/%y
%F full date; same as %Y-%m-%d
%m month (01..12)
%M minute (00..59)
%R 24-hour hour and minute; same as %H:%M
%T time; same as %H:%M:%S
Hi it seems the GraphSQL curl example page at https://developers.cloudflare.com/analytics/graphql-api/getting-started/execute-graphql-query has an incorrect format for the date's minute format. On CentOS 7.9 date v8.22 the
%mis for month not minute and need to use%Mfor minutesYour curl example uses incorrect minute format
%m