Is it possible to define a sort of timezone with sendHttpGetRequest
? The hours I get are different when running it in browser and postman/openhab.
When I execute this GET command in browser, I get:
https://griddata.elia.be/eliabecontrols.prod/interface/Interconnections/daily/auctionresults/2023-03-21
<ArrayOfDailyDayAheadPriceDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Elia.EliaBeControls.WebApi.Interface.Dto.FileRepository">
<DailyDayAheadPriceDto>
<IsVisible xmlns="http://schemas.datacontract.org/2004/07/Elia.EliaBeControls.WebApi.Interface.Dto">true</IsVisible>
<DateTime>2023-03-21T00:00:00+01:00</DateTime>
<Price>120.790</Price>
</DailyDayAheadPriceDto>
<DailyDayAheadPriceDto>
<IsVisible xmlns="http://schemas.datacontract.org/2004/07/Elia.EliaBeControls.WebApi.Interface.Dto">true</IsVisible>
<DateTime>2023-03-21T01:00:00+01:00</DateTime>
<Price>112.280</Price>
</DailyDayAheadPriceDto>
<DailyDayAheadPriceDto>
<IsVisible xmlns="http://schemas.datacontract.org/2004/07/Elia.EliaBeControls.WebApi.Interface.Dto">true</IsVisible>
<DateTime>2023-03-21T02:00:00+01:00</DateTime>
<Price>111.560</Price>
</DailyDayAheadPriceDto>
<DailyDayAheadPriceDto>
<IsVisible xmlns="http://schemas.datacontract.org/2004/07/Elia.EliaBeControls.WebApi.Interface.Dto">true</IsVisible>
<DateTime>2023-03-21T03:00:00+01:00</DateTime>
<Price>108.650</Price>
</DailyDayAheadPriceDto>
....
but when I run sendHttpGetRequest('https://griddata.elia.be/eliabecontrols.prod/interface/Interconnections/daily/auctionresults/2023-03-21')
or use Postman, I get:
[{
"dateTime": "2023-03-20T23:00:00Z",
"price": 120.790,
"isVisible": true
}, {
"dateTime": "2023-03-21T00:00:00Z",
"price": 112.280,
"isVisible": true
}, {
"dateTime": "2023-03-21T01:00:00Z",
"price": 111.560,
"isVisible": true
}, {
"dateTime": "2023-03-21T02:00:00Z",
"price": 108.650,
"isVisible": true
},
...