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: calculate end date at time of request, rather than process start #13196

Merged
merged 1 commit into from
Mar 29, 2024
Merged

fix: calculate end date at time of request, rather than process start #13196

merged 1 commit into from
Mar 29, 2024

Conversation

ross-w
Copy link
Contributor

@ross-w ross-w commented Mar 29, 2024

Regrettably, my last PR had a bug where the endDate sent to the API was calculated only once (at process start.) This meant that if the process was still running when the next day rolled around, the API would no longer receive the correct end date, and not return the correct data. As I had been restarting the evcc process regularly, I hadn't noticed.

This PR is to move the date calculation into the loop, similar to how the elering tariff works.

@andig andig merged commit 671a580 into evcc-io:master Mar 29, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants