Get data from the previous week with RENDER API

Hello. If I select previous week in grafana it works perfect but if I do it in that way from the Render API like that:
http://IP:PORT
/render/?target=alias(summarize(sumSeries(My_data),‘1h’,‘sum’,false),‘INGRESS_IN’)
&midnight+monday-1w&until=midnight+monday&format=csv

I get something like this:
First hour is 01:00 of day 1 of 7
Last hours are 00:00 and 01:00 of day 8 (?¿) . And data for 01:00 is not correct (lower value)

Which would be the correct format to get the right date from the API? (Grafana is set on local time)

Thanks in advance

…any ideas?

hello? any ideas please?