Yeah,
Checking again the Restful API it says the following:
It is important to take area’s timezone into consideration, as well as winter/summer time. For example, consider the day of February 2 2016 in CET. This is during winter time and hence using UTC this day is considered to start at 2016-01-01 at 23:00 and end at 2016-01-02 at 23:00. As another example, the day of July 5 2016 in CET is during summer time and using UTC this day is considered to start at 2016-07-04 at 22:00 and end at 2016-07-05 at 22:00.
…which means that we actually do not need the DST checking at all. The server also makes the one hour shift in it’s response, so we can remove the check DST route.
The other interesting thing is, that there actually is one extra value for 30.10., the 3:00 value is doubled and altogether we get 25 values for that day, which is correct in this situation though. The two 03:00 values are also different, which also makes sense; there of course is a bit different pricing environment for both these 03:00 hours.
Because of this there was a 1 hour shift for the rest of the day, this kind of indexed method of getting the values did not “see that coming”
Also, the periodEnd value of all the url’s generated in the 3 generate urls blocks should be set to 22:00 to avoid the range from going to another day’s range, in which case it would return two 24 hour sets of values.
So the url should be e.g. in yesterday url of form:
https://web-api.tp.entsoe.eu/api?securityToken=MY_TOKEN_HERE&documentType=A44&in_Domain=10YFI-1--------U&out_Domain=10YFI-1--------U&periodStart="+yesterdayString+"0000&periodEnd="+yesterdayString+"2200"
Let’s keep an eye on it after the changes for few days… However, with this structure I can foresee similar hassle in the spring again, not because of the DST change itself, but because of the missing hour, there will be one day with only 23 values for the day returned…
Anyway, because of the general debate around this DST, it could be that we do not have it anymore in the spring