From d8fa2b559acb2f382ddc4a440bbb80bd7686083e Mon Sep 17 00:00:00 2001 From: andig Date: Tue, 11 Feb 2025 09:42:22 +0100 Subject: [PATCH] chore: always use local time --- tariff/tariff.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tariff/tariff.go b/tariff/tariff.go index c761e7ff7..ac836556f 100644 --- a/tariff/tariff.go +++ b/tariff/tariff.go @@ -98,7 +98,11 @@ func (t *Tariff) run(forecastG func() (string, error), done chan error, interval return backoff.Permanent(err) } for i, r := range data { - data[i].Price = t.totalPrice(r.Price, r.Start) + data[i] = api.Rate{ + Price: t.totalPrice(r.Price, r.Start), + Start: r.Start.Local(), + End: r.End.Local(), + } } return nil }, bo()); err != nil {