You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actually this is a bug in Caruna Plus API itself. It doesn't handle timestamps correctly when daylight saving offset is changing.
Please correct me if I have misunderstood something.
API returns all hours within a day. Results are returned as local times with time zone offset, so the first hour is 00:00 local time and the last hour is 23:00 local time.
When the daylight saving offset is increased (March), there should be returned only 23 hours instead of 24.
And when the daylight saving offset is decreased (October), there should be 25 hours, one extra hour.
However this is an issue, because two hours of data is missing.
I noticed that Excel reports are working correctly, but in reports values are rounded. I also compared the data retrieved from the old "Energiaseuranta".
Note: I'm not actually using this code, I use my own version written in C#.
The text was updated successfully, but these errors were encountered:
I didn't notice this issue until now, sorry about that. Do you have a proposed solution for this? Perhaps we could just mention it in the README under a "caveats" section if like you say it's basically a bug in the API itself?
I have reported the bug to Caruna, but they have not responded and the issue still exists.
Because this is a bug in Caruna's web application, I think we just have to wait for a fix.
Actually this is a bug in Caruna Plus API itself. It doesn't handle timestamps correctly when daylight saving offset is changing.
Please correct me if I have misunderstood something.
API returns all hours within a day. Results are returned as local times with time zone offset, so the first hour is 00:00 local time and the last hour is 23:00 local time.
When the daylight saving offset is increased (March), there should be returned only 23 hours instead of 24.
And when the daylight saving offset is decreased (October), there should be 25 hours, one extra hour.
However:
The above can be corrected, we could skip the duplicated hour.
However this is an issue, because two hours of data is missing.
I noticed that Excel reports are working correctly, but in reports values are rounded. I also compared the data retrieved from the old "Energiaseuranta".
Note: I'm not actually using this code, I use my own version written in C#.
The text was updated successfully, but these errors were encountered: