diff --git a/TeslaMateAgile/Services/MontaService.cs b/TeslaMateAgile/Services/MontaService.cs index ea9e7a2..fae51eb 100644 --- a/TeslaMateAgile/Services/MontaService.cs +++ b/TeslaMateAgile/Services/MontaService.cs @@ -53,6 +53,9 @@ private async Task GetAccessToken() private async Task GetCharges(string accessToken, DateTimeOffset from, DateTimeOffset to) { + from = from.AddHours(-24); + to = to.AddHours(24); + var requestUri = $"{_options.BaseUrl}/charges?state=completed&fromDate={from.UtcDateTime:o}&toDate={to.UtcDateTime:o}"; if (_options.ChargePointId.HasValue) {