Skip to content
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

Fix DST readings #1

Open
alvaro-octal opened this issue Apr 16, 2020 · 0 comments
Open

Fix DST readings #1

alvaro-octal opened this issue Apr 16, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@alvaro-octal
Copy link
Owner

alvaro-octal commented Apr 16, 2020

The day for spring DST change (when the day has 23 hours), currently returns reading for hours from 0 to 22:

[
     { hour: 0, consumption: 123 },
     { hour: 1, consumption: 213 },
     { hour: 2, consumption: 312 },
     { hour: 3, consumption: 231 },
     [...]
     { hour: 22, consumption: 321 }
]

But should return from 0 to 1 and from 3 to 23 (because the hour 2 does not exists), in order to match the with esios format

[
     { hour: 0, consumption: 123 },
     { hour: 1, consumption: 213 },
     { hour: 3, consumption: 231 },
     [...]
     { hour: 23, consumption: 321 }
]
@alvaro-octal alvaro-octal added the bug Something isn't working label Apr 16, 2020
@alvaro-octal alvaro-octal self-assigned this Apr 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant