-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Daylight Saving Time issue #7
Comments
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. I agree with your proposal. |
Added a note to the README. Thanks for reporting this! |
It seems that Caruna has fixed this (last year). |
Thanks for the report! I guess we can remove the caveat from the README then? |
README updated |
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: